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 r616094 = x;
double r616095 = y;
double r616096 = z;
double r616097 = r616095 / r616096;
double r616098 = t;
double r616099 = r616097 * r616098;
double r616100 = r616099 / r616098;
double r616101 = r616094 * r616100;
return r616101;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r616102 = x;
double r616103 = y;
double r616104 = cbrt(r616103);
double r616105 = z;
double r616106 = cbrt(r616105);
double r616107 = r616104 / r616106;
double r616108 = r616102 * r616107;
double r616109 = r616108 * r616107;
double r616110 = r616109 * r616107;
return r616110;
}




Bits error versus x




Bits error versus y




Bits error versus z




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