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 r241083 = x;
double r241084 = y;
double r241085 = z;
double r241086 = t;
double r241087 = r241085 - r241086;
double r241088 = r241084 * r241087;
double r241089 = a;
double r241090 = r241088 / r241089;
double r241091 = r241083 + r241090;
return r241091;
}
double f(double x, double y, double z, double t, double a) {
double r241092 = x;
double r241093 = y;
double r241094 = a;
double r241095 = z;
double r241096 = t;
double r241097 = r241095 - r241096;
double r241098 = r241094 / r241097;
double r241099 = r241093 / r241098;
double r241100 = r241092 + r241099;
return r241100;
}




Bits error versus x




Bits error versus y




Bits error versus z




Bits error versus t




Bits error versus a
Results
| Original | 6.4 |
|---|---|
| Target | 0.8 |
| Herbie | 5.4 |
if y < -1.7842927315890493e+29Initial program 17.3
rmApplied associate-/l*1.1
rmApplied associate-/r/4.4
rmApplied add-cube-cbrt5.0
Applied associate-*r*5.0
Taylor expanded around 0 17.3
Simplified0.9
if -1.7842927315890493e+29 < y < 8.192485547752354e-59Initial program 0.6
rmApplied sub-neg0.6
Applied distribute-lft-in0.6
if 8.192485547752354e-59 < y Initial program 12.4
rmApplied associate-/l*1.1
Final simplification5.4
herbie shell --seed 1978988140
(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)))