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




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 15.1 |
|---|---|
| Target | 1.6 |
| Herbie | 2.1 |
Initial program 15.1
Simplified6.4
rmApplied add-cube-cbrt7.2
Applied *-un-lft-identity7.2
Applied times-frac7.2
Applied associate-*r*5.6
Simplified5.6
rmApplied add-cube-cbrt5.7
Applied cbrt-prod5.7
Applied *-un-lft-identity5.7
Applied times-frac5.7
Applied associate-*r*6.4
Simplified6.4
rmApplied cbrt-prod6.5
Applied add-cube-cbrt6.6
Applied times-frac6.6
Applied times-frac6.6
Applied associate-*l*2.1
Final simplification2.1
herbie shell --seed 2020161
(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)))