x - \frac{y \cdot \left(z - t\right)}{a}\left(\frac{t \cdot y}{a} + x\right) - \frac{z \cdot y}{a}double f(double x, double y, double z, double t, double a) {
double r210168 = x;
double r210169 = y;
double r210170 = z;
double r210171 = t;
double r210172 = r210170 - r210171;
double r210173 = r210169 * r210172;
double r210174 = a;
double r210175 = r210173 / r210174;
double r210176 = r210168 - r210175;
return r210176;
}
double f(double x, double y, double z, double t, double a) {
double r210177 = t;
double r210178 = y;
double r210179 = r210177 * r210178;
double r210180 = a;
double r210181 = r210179 / r210180;
double r210182 = x;
double r210183 = r210181 + r210182;
double r210184 = z;
double r210185 = r210184 * r210178;
double r210186 = r210185 / r210180;
double r210187 = r210183 - r210186;
return r210187;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 5.9 |
|---|---|
| Target | 0.8 |
| Herbie | 5.9 |
if y < -4.220030324223059e+17 or 9.369856241541125e-20 < y Initial program 14.6
Taylor expanded around 0 14.6
Simplified3.7
rmApplied add-cube-cbrt4.3
Applied associate-*r*4.3
Taylor expanded around 0 14.6
rmApplied *-un-lft-identity14.6
Applied *-un-lft-identity14.6
Applied distribute-lft-out--14.6
Simplified1.0
if -4.220030324223059e+17 < y < 9.369856241541125e-20Initial program 0.6
Taylor expanded around 0 0.6
Simplified1.7
rmApplied add-cube-cbrt2.1
Applied associate-*r*2.1
Taylor expanded around 0 0.6
rmApplied add-cube-cbrt0.8
Final simplification5.9
herbie shell --seed 2019291
(FPCore (x y z t a)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, F"
:precision binary64
:herbie-target
(if (< y -1.07612662163899753e-10) (- x (/ 1 (/ (/ a (- z t)) y))) (if (< y 2.8944268627920891e-49) (- x (/ (* y (- z t)) a)) (- x (/ y (/ a (- z t))))))
(- x (/ (* y (- z t)) a)))