Average Error: 14.1 → 1.3
Time: 35.2s
Precision: 64
Internal Precision: 384
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;\frac{\frac{y}{z} \cdot t}{t} \le -7.29551714702082 \cdot 10^{+131}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{if}\;\frac{\frac{y}{z} \cdot t}{t} \le -1.2771659028702316 \cdot 10^{-232}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{if}\;\frac{\frac{y}{z} \cdot t}{t} \le 2.40967972221515 \cdot 10^{-310}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \mathbf{if}\;\frac{\frac{y}{z} \cdot t}{t} \le 9.281304812133924 \cdot 10^{+144}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{z} \cdot y\\ \end{array}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Derivation

  1. Split input into 3 regimes
  2. if (/ (* (/ y z) t) t) < -7.29551714702082e+131

    1. Initial program 35.8

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify14.4

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]
    3. Taylor expanded around 0 4.2

      \[\leadsto \color{blue}{\frac{y \cdot x}{z}}\]

    if -7.29551714702082e+131 < (/ (* (/ y z) t) t) < -1.2771659028702316e-232 or 2.40967972221515e-310 < (/ (* (/ y z) t) t) < 9.281304812133924e+144

    1. Initial program 0.5

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify0.3

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]

    if -1.2771659028702316e-232 < (/ (* (/ y z) t) t) < 2.40967972221515e-310 or 9.281304812133924e+144 < (/ (* (/ y z) t) t)

    1. Initial program 27.8

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify12.5

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]
    3. Using strategy rm
    4. Applied associate-/r/1.8

      \[\leadsto \color{blue}{\frac{x}{z} \cdot y}\]
  3. Recombined 3 regimes into one program.
  4. Removed slow pow expressions.

Runtime

Time bar (total: 35.2s)Debug logProfile

herbie shell --seed '#(1063027428 1192549564 1443466578 604016274 3637110559 1698629644)' 
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))