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 r1752 = x;
double r1753 = y;
double r1754 = z;
double r1755 = r1754 - r1752;
double r1756 = r1753 * r1755;
double r1757 = t;
double r1758 = r1756 / r1757;
double r1759 = r1752 + r1758;
return r1759;
}
double f(double x, double y, double z, double t) {
double r1760 = z;
double r1761 = x;
double r1762 = r1760 - r1761;
double r1763 = t;
double r1764 = y;
double r1765 = r1763 / r1764;
double r1766 = r1762 / r1765;
double r1767 = r1766 + r1761;
return r1767;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t
Results
| Original | 6.4 |
|---|---|
| Target | 2.1 |
| Herbie | 1.9 |
Initial program 6.4
rmApplied clear-num6.4
rmApplied associate-/r*2.0
rmApplied *-un-lft-identity2.0
Applied *-un-lft-identity2.0
Applied *-un-lft-identity2.0
Applied times-frac2.0
Applied times-frac2.0
Applied add-cube-cbrt2.0
Applied times-frac2.0
Simplified2.0
Simplified1.9
Final simplification1.9
herbie shell --seed 2020025
(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)))