Average Error: 13.9 → 0.8
Time: 31.0s
Precision: 64
Internal Precision: 384
\[x \cdot \frac{\frac{y}{z} \cdot t}{t}\]
\[\begin{array}{l} \mathbf{if}\;\left(x \cdot \left(\sqrt[3]{\frac{y}{z}} \cdot \sqrt[3]{\frac{y}{z}}\right)\right) \cdot \left(\left(\sqrt[3]{\sqrt[3]{\frac{y}{z}}} \cdot \sqrt[3]{\sqrt[3]{\frac{y}{z}}}\right) \cdot \sqrt[3]{\frac{\sqrt[3]{y}}{\sqrt[3]{z}}}\right) \le -3.341312762664692 \cdot 10^{+297}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{if}\;\left(x \cdot \left(\sqrt[3]{\frac{y}{z}} \cdot \sqrt[3]{\frac{y}{z}}\right)\right) \cdot \left(\left(\sqrt[3]{\sqrt[3]{\frac{y}{z}}} \cdot \sqrt[3]{\sqrt[3]{\frac{y}{z}}}\right) \cdot \sqrt[3]{\frac{\sqrt[3]{y}}{\sqrt[3]{z}}}\right) \le -1.6552811600931675 \cdot 10^{-304}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{if}\;\left(x \cdot \left(\sqrt[3]{\frac{y}{z}} \cdot \sqrt[3]{\frac{y}{z}}\right)\right) \cdot \left(\left(\sqrt[3]{\sqrt[3]{\frac{y}{z}}} \cdot \sqrt[3]{\sqrt[3]{\frac{y}{z}}}\right) \cdot \sqrt[3]{\frac{\sqrt[3]{y}}{\sqrt[3]{z}}}\right) \le 0.0:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \mathbf{if}\;\left(x \cdot \left(\sqrt[3]{\frac{y}{z}} \cdot \sqrt[3]{\frac{y}{z}}\right)\right) \cdot \left(\left(\sqrt[3]{\sqrt[3]{\frac{y}{z}}} \cdot \sqrt[3]{\sqrt[3]{\frac{y}{z}}}\right) \cdot \sqrt[3]{\frac{\sqrt[3]{y}}{\sqrt[3]{z}}}\right) \le 6.731925104614489 \cdot 10^{+267}:\\ \;\;\;\;x \cdot \frac{y}{z}\\ \mathbf{else}:\\ \;\;\;\;\frac{x \cdot y}{z}\\ \end{array}\]

Error

Bits error versus x

Bits error versus y

Bits error versus z

Bits error versus t

Derivation

  1. Split input into 2 regimes
  2. if (* (* x (* (cbrt (/ y z)) (cbrt (/ y z)))) (* (* (cbrt (cbrt (/ y z))) (cbrt (cbrt (/ y z)))) (cbrt (/ (cbrt y) (cbrt z))))) < -3.341312762664692e+297 or -1.6552811600931675e-304 < (* (* x (* (cbrt (/ y z)) (cbrt (/ y z)))) (* (* (cbrt (cbrt (/ y z))) (cbrt (cbrt (/ y z)))) (cbrt (/ (cbrt y) (cbrt z))))) < 0.0 or 6.731925104614489e+267 < (* (* x (* (cbrt (/ y z)) (cbrt (/ y z)))) (* (* (cbrt (cbrt (/ y z))) (cbrt (cbrt (/ y z)))) (cbrt (/ (cbrt y) (cbrt z)))))

    1. Initial program 19.1

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

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

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

    if -3.341312762664692e+297 < (* (* x (* (cbrt (/ y z)) (cbrt (/ y z)))) (* (* (cbrt (cbrt (/ y z))) (cbrt (cbrt (/ y z)))) (cbrt (/ (cbrt y) (cbrt z))))) < -1.6552811600931675e-304 or 0.0 < (* (* x (* (cbrt (/ y z)) (cbrt (/ y z)))) (* (* (cbrt (cbrt (/ y z))) (cbrt (cbrt (/ y z)))) (cbrt (/ (cbrt y) (cbrt z))))) < 6.731925104614489e+267

    1. Initial program 11.6

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

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

Runtime

Time bar (total: 31.0s)Debug logProfile

herbie shell --seed '#(1070960995 739739648 2531964651 3069671617 351857262 3877178482)' +o rules:numerics
(FPCore (x y z t)
  :name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1"
  (* x (/ (* (/ y z) t) t)))