x \cdot \frac{\frac{y}{z} \cdot t}{t}\left(\left(x \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z}}\right) \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z}}\right) \cdot \frac{\sqrt[3]{y}}{\sqrt[3]{z}}double code(double x, double y, double z, double t) {
return (x * (((y / z) * t) / t));
}
double code(double x, double y, double z, double t) {
return (((x * (cbrt(y) / cbrt(z))) * (cbrt(y) / cbrt(z))) * (cbrt(y) / cbrt(z)));
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 14.3 |
|---|---|
| Target | 1.3 |
| Herbie | 1.3 |
Initial program 14.3
Simplified6.5
rmApplied add-cube-cbrt7.3
Applied add-cube-cbrt7.5
Applied times-frac7.5
Applied associate-*r*2.1
rmApplied times-frac2.1
Applied associate-*r*1.3
Final simplification1.3
herbie shell --seed 2020091
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1, B"
:precision binary64
:herbie-target
(if (< (/ (* (/ y z) t) t) -1.20672205123045e+245) (/ y (/ z x)) (if (< (/ (* (/ y z) t) t) -5.907522236933906e-275) (* x (/ y z)) (if (< (/ (* (/ y z) t) t) 5.658954423153415e-65) (/ y (/ z x)) (if (< (/ (* (/ y z) t) t) 2.0087180502407133e+217) (* x (/ y z)) (/ (* y x) z)))))
(* x (/ (* (/ y z) t) t)))