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 r616044 = x;
double r616045 = y;
double r616046 = z;
double r616047 = r616045 / r616046;
double r616048 = t;
double r616049 = r616047 * r616048;
double r616050 = r616049 / r616048;
double r616051 = r616044 * r616050;
return r616051;
}
double f(double x, double y, double z, double __attribute__((unused)) t) {
double r616052 = x;
double r616053 = y;
double r616054 = cbrt(r616053);
double r616055 = z;
double r616056 = cbrt(r616055);
double r616057 = r616054 / r616056;
double r616058 = r616052 * r616057;
double r616059 = r616058 * r616057;
double r616060 = r616059 * r616057;
return r616060;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 14.8 |
|---|---|
| Target | 1.6 |
| Herbie | 1.4 |
Initial program 14.8
Simplified6.5
rmApplied add-cube-cbrt7.2
Applied add-cube-cbrt7.4
Applied times-frac7.4
Applied associate-*r*2.1
rmApplied times-frac2.1
Applied associate-*r*1.4
Final simplification1.4
herbie shell --seed 2019322
(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.20672205123045005e245) (/ y (/ z x)) (if (< (/ (* (/ y z) t) t) -5.90752223693390633e-275) (* x (/ y z)) (if (< (/ (* (/ y z) t) t) 5.65895442315341522e-65) (/ y (/ z x)) (if (< (/ (* (/ y z) t) t) 2.0087180502407133e217) (* x (/ y z)) (/ (* y x) z)))))
(* x (/ (* (/ y z) t) t)))