x + \frac{y \cdot \left(z - t\right)}{a}x + \frac{y}{\frac{a}{z - t}}double f(double x, double y, double z, double t, double a) {
double r206569 = x;
double r206570 = y;
double r206571 = z;
double r206572 = t;
double r206573 = r206571 - r206572;
double r206574 = r206570 * r206573;
double r206575 = a;
double r206576 = r206574 / r206575;
double r206577 = r206569 + r206576;
return r206577;
}
double f(double x, double y, double z, double t, double a) {
double r206578 = x;
double r206579 = y;
double r206580 = a;
double r206581 = z;
double r206582 = t;
double r206583 = r206581 - r206582;
double r206584 = r206580 / r206583;
double r206585 = r206579 / r206584;
double r206586 = r206578 + r206585;
return r206586;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 6.0 |
|---|---|
| Target | 0.7 |
| Herbie | 5.8 |
if (* y (- z t)) < -9.886386604580156e+99Initial program 15.7
rmApplied associate-/l*3.1
rmApplied associate-/r/2.1
if -9.886386604580156e+99 < (* y (- z t)) < 5.339467908683941e+103Initial program 0.4
rmApplied associate-/l*7.4
rmApplied div-inv7.4
Applied *-un-lft-identity7.4
Applied times-frac0.5
Simplified0.5
if 5.339467908683941e+103 < (* y (- z t)) Initial program 16.2
rmApplied associate-/l*2.9
Final simplification5.8
herbie shell --seed 2019304
(FPCore (x y z t a)
:name "Optimisation.CirclePacking:place from circle-packing-0.1.0.4, E"
: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)))