x + \frac{y \cdot \left(z - x\right)}{t}\frac{z - x}{\frac{t}{y}} + xdouble f(double x, double y, double z, double t) {
double r402563 = x;
double r402564 = y;
double r402565 = z;
double r402566 = r402565 - r402563;
double r402567 = r402564 * r402566;
double r402568 = t;
double r402569 = r402567 / r402568;
double r402570 = r402563 + r402569;
return r402570;
}
double f(double x, double y, double z, double t) {
double r402571 = z;
double r402572 = x;
double r402573 = r402571 - r402572;
double r402574 = t;
double r402575 = y;
double r402576 = r402574 / r402575;
double r402577 = r402573 / r402576;
double r402578 = r402577 + r402572;
return r402578;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 6.5 |
|---|---|
| Target | 2.2 |
| Herbie | 2.1 |
Initial program 6.5
rmApplied clear-num6.5
rmApplied associate-/r*2.2
rmApplied *-un-lft-identity2.2
Applied *-un-lft-identity2.2
Applied *-un-lft-identity2.2
Applied times-frac2.2
Applied times-frac2.2
Applied add-cube-cbrt2.2
Applied times-frac2.2
Simplified2.2
Simplified2.1
Final simplification2.1
herbie shell --seed 2020081
(FPCore (x y z t)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, D"
:precision binary64
:herbie-target
(- x (+ (* x (/ y t)) (* (- z) (/ y t))))
(+ x (/ (* y (- z x)) t)))