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 r527406 = x;
double r527407 = y;
double r527408 = z;
double r527409 = r527407 / r527408;
double r527410 = t;
double r527411 = r527409 * r527410;
double r527412 = r527411 / r527410;
double r527413 = r527406 * r527412;
return r527413;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r527414 = x;
double r527415 = y;
double r527416 = cbrt(r527415);
double r527417 = z;
double r527418 = cbrt(r527417);
double r527419 = r527416 / r527418;
double r527420 = r527414 * r527419;
double r527421 = r527420 * r527419;
double r527422 = r527421 * r527419;
return r527422;
}




Bits error versus x




Bits error versus y




Bits error versus z




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