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 r637414 = x;
double r637415 = y;
double r637416 = z;
double r637417 = r637415 / r637416;
double r637418 = t;
double r637419 = r637417 * r637418;
double r637420 = r637419 / r637418;
double r637421 = r637414 * r637420;
return r637421;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r637422 = x;
double r637423 = y;
double r637424 = cbrt(r637423);
double r637425 = z;
double r637426 = cbrt(r637425);
double r637427 = r637424 / r637426;
double r637428 = r637422 * r637427;
double r637429 = r637428 * r637427;
double r637430 = r637429 * r637427;
return r637430;
}




Bits error versus x




Bits error versus y




Bits error versus z




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