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 r795885 = x;
double r795886 = y;
double r795887 = z;
double r795888 = r795886 / r795887;
double r795889 = t;
double r795890 = r795888 * r795889;
double r795891 = r795890 / r795889;
double r795892 = r795885 * r795891;
return r795892;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r795893 = x;
double r795894 = y;
double r795895 = cbrt(r795894);
double r795896 = z;
double r795897 = cbrt(r795896);
double r795898 = r795895 / r795897;
double r795899 = r795893 * r795898;
double r795900 = r795899 * r795898;
double r795901 = r795900 * r795898;
return r795901;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 14.5 |
|---|---|
| Target | 1.3 |
| Herbie | 1.3 |
Initial program 14.5
Simplified6.5
rmApplied add-cube-cbrt7.3
Applied add-cube-cbrt7.5
Applied times-frac7.5
Applied associate-*r*2.0
rmApplied times-frac2.0
Applied associate-*r*1.3
Final simplification1.3
herbie shell --seed 2020046
(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)))