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 r28561867 = x;
double r28561868 = y;
double r28561869 = z;
double r28561870 = r28561868 / r28561869;
double r28561871 = t;
double r28561872 = r28561870 * r28561871;
double r28561873 = r28561872 / r28561871;
double r28561874 = r28561867 * r28561873;
return r28561874;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r28561875 = y;
double r28561876 = x;
double r28561877 = cbrt(r28561876);
double r28561878 = z;
double r28561879 = cbrt(r28561878);
double r28561880 = r28561877 / r28561879;
double r28561881 = r28561880 * r28561880;
double r28561882 = r28561875 * r28561881;
double r28561883 = r28561882 * r28561880;
return r28561883;
}




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)))