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 f(double x, double y, double z, double t) {
double r607758 = x;
double r607759 = y;
double r607760 = z;
double r607761 = r607759 / r607760;
double r607762 = t;
double r607763 = r607761 * r607762;
double r607764 = r607763 / r607762;
double r607765 = r607758 * r607764;
return r607765;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r607766 = x;
double r607767 = y;
double r607768 = cbrt(r607767);
double r607769 = z;
double r607770 = cbrt(r607769);
double r607771 = r607768 / r607770;
double r607772 = r607766 * r607771;
double r607773 = r607772 * r607771;
double r607774 = r607773 * r607771;
return r607774;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 14.8 |
|---|---|
| Target | 1.4 |
| Herbie | 1.4 |
Initial program 14.8
Simplified6.4
rmApplied add-cube-cbrt7.2
Applied add-cube-cbrt7.3
Applied times-frac7.3
Applied associate-*r*2.0
rmApplied times-frac2.1
Applied associate-*r*1.4
Final simplification1.4
herbie shell --seed 2020021
(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)))