Average Error: 14.4 → 1.2
Time: 15.9s
Precision: 64
Internal Precision: 384
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;\frac{x}{z} \le -4.392881003450341 \cdot 10^{+145}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{if}\;\frac{x}{z} \le -1.3530384677067477 \cdot 10^{-181}:\\ \;\;\;\;\frac{\frac{x}{z}}{\frac{1}{y}}\\ \mathbf{if}\;\frac{x}{z} \le 2.009703346507549 \cdot 10^{-276}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{if}\;\frac{x}{z} \le 1.2170711764809105 \cdot 10^{+50}:\\ \;\;\;\;\frac{\frac{x}{z}}{\frac{1}{y}}\\ \mathbf{else}:\\ \;\;\;\;\frac{x}{\frac{z}{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 (/ x z) < -4.392881003450341e+145 or 1.2170711764809105e+50 < (/ x z)

    1. Initial program 14.5

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify4.1

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

      \[\leadsto \color{blue}{\frac{x \cdot y}{z}}\]
    5. Using strategy rm
    6. Applied associate-/l*3.9

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

    if -4.392881003450341e+145 < (/ x z) < -1.3530384677067477e-181 or 2.009703346507549e-276 < (/ x z) < 1.2170711764809105e+50

    1. Initial program 19.0

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify9.1

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

      \[\leadsto \color{blue}{\frac{x \cdot y}{z}}\]
    5. Using strategy rm
    6. Applied associate-/l*9.2

      \[\leadsto \color{blue}{\frac{x}{\frac{z}{y}}}\]
    7. Using strategy rm
    8. Applied div-inv9.2

      \[\leadsto \frac{x}{\color{blue}{z \cdot \frac{1}{y}}}\]
    9. Applied associate-/r*0.3

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

    if -1.3530384677067477e-181 < (/ x z) < 2.009703346507549e-276

    1. Initial program 4.5

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

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

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

Runtime

Time bar (total: 15.9s)Debug logProfile

herbie shell --seed '#(1070706311 3771791028 4128836681 4194990999 2341756049 504035650)' 
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))