x \cdot \frac{\frac{y}{z} \cdot t}{t}\left(y \cdot \left(\frac{\sqrt[3]{x}}{\sqrt[3]{z}} \cdot \frac{\sqrt[3]{x}}{\sqrt[3]{z}}\right)\right) \cdot \frac{\sqrt[3]{x}}{\sqrt[3]{z}}double f(double x, double y, double z, double t) {
double r27077051 = x;
double r27077052 = y;
double r27077053 = z;
double r27077054 = r27077052 / r27077053;
double r27077055 = t;
double r27077056 = r27077054 * r27077055;
double r27077057 = r27077056 / r27077055;
double r27077058 = r27077051 * r27077057;
return r27077058;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r27077059 = y;
double r27077060 = x;
double r27077061 = cbrt(r27077060);
double r27077062 = z;
double r27077063 = cbrt(r27077062);
double r27077064 = r27077061 / r27077063;
double r27077065 = r27077064 * r27077064;
double r27077066 = r27077059 * r27077065;
double r27077067 = r27077066 * r27077064;
return r27077067;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 14.8 |
|---|---|
| Target | 1.6 |
| Herbie | 2.0 |
Initial program 14.8
Simplified6.1
rmApplied add-cube-cbrt6.9
Applied add-cube-cbrt7.1
Applied times-frac7.1
Applied associate-*r*1.9
Simplified2.0
Final simplification2.0
herbie shell --seed 2019172
(FPCore (x y z t)
:name "Graphics.Rendering.Chart.Backend.Diagrams:calcFontMetrics from Chart-diagrams-1.5.1, B"
: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)))