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 r1150378 = x;
double r1150379 = y;
double r1150380 = z;
double r1150381 = r1150379 / r1150380;
double r1150382 = t;
double r1150383 = r1150381 * r1150382;
double r1150384 = r1150383 / r1150382;
double r1150385 = r1150378 * r1150384;
return r1150385;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r1150386 = x;
double r1150387 = y;
double r1150388 = cbrt(r1150387);
double r1150389 = z;
double r1150390 = cbrt(r1150389);
double r1150391 = r1150388 / r1150390;
double r1150392 = r1150386 * r1150391;
double r1150393 = r1150392 * r1150391;
double r1150394 = r1150393 * r1150391;
return r1150394;
}




Bits error versus x




Bits error versus y




Bits error versus z




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