Average Error: 13.9 → 0.3
Time: 13.4s
Precision: 64
Internal Precision: 384
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;\sqrt[3]{\frac{z}{y}} \le -2.608850838893404 \cdot 10^{+74}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{if}\;\sqrt[3]{\frac{z}{y}} \le -2.0009800614308152 \cdot 10^{-90}:\\ \;\;\;\;\frac{x}{\frac{z}{y}}\\ \mathbf{if}\;\sqrt[3]{\frac{z}{y}} \le 5.597701311680432 \cdot 10^{-74}:\\ \;\;\;\;\frac{y \cdot x}{z}\\ \mathbf{if}\;\sqrt[3]{\frac{z}{y}} \le 2.4351802450022884 \cdot 10^{+82}:\\ \;\;\;\;\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 4 regimes
  2. if (cbrt (/ z y)) < -2.608850838893404e+74 or -2.0009800614308152e-90 < (cbrt (/ z y)) < 5.597701311680432e-74

    1. Initial program 29.4

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

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

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

    if -2.608850838893404e+74 < (cbrt (/ z y)) < -2.0009800614308152e-90

    1. Initial program 9.0

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

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

    if 5.597701311680432e-74 < (cbrt (/ z y)) < 2.4351802450022884e+82

    1. Initial program 8.5

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

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

    if 2.4351802450022884e+82 < (cbrt (/ z y))

    1. Initial program 17.7

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

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

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

Runtime

Time bar (total: 13.4s)Debug logProfile

herbie shell --seed '#(1064300848 3212030778 2049303162 3567222883 2277747821 1384278011)' 
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))