Average Error: 14.6 → 0.2
Time: 14.9s
Precision: 64
Internal Precision: 384
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;\frac{y}{z} \le -6.472360901448889 \cdot 10^{+242}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{if}\;\frac{y}{z} \le -1.5560380778936522 \cdot 10^{-279}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{if}\;\frac{y}{z} \le 2.4109594689258555 \cdot 10^{-307}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{if}\;\frac{y}{z} \le 1.1895004342252962 \cdot 10^{+230}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{\frac{z}{x}}{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) < -6.472360901448889e+242 or -1.5560380778936522e-279 < (/ y z) < 2.4109594689258555e-307

    1. Initial program 24.7

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify20.0

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

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

    if -6.472360901448889e+242 < (/ y z) < -1.5560380778936522e-279 or 2.4109594689258555e-307 < (/ y z) < 1.1895004342252962e+230

    1. Initial program 9.4

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

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

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

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

    if 1.1895004342252962e+230 < (/ y z)

    1. Initial program 48.0

      \[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
    2. Applied simplify33.8

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

      \[\leadsto \color{blue}{\frac{x \cdot y}{z}}\]
    5. Using strategy rm
    6. Applied clear-num0.7

      \[\leadsto \color{blue}{\frac{1}{\frac{z}{x \cdot y}}}\]
    7. Using strategy rm
    8. Applied associate-/r*0.3

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

Runtime

Time bar (total: 14.9s)Debug logProfile

herbie shell --seed '#(1070991898 1055468627 4280279443 640792587 928206309 3646738750)' 
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))