\frac{x \cdot \left(y + z\right)}{z}\frac{x}{\frac{z}{y + z}}double f(double x, double y, double z) {
double r288545 = x;
double r288546 = y;
double r288547 = z;
double r288548 = r288546 + r288547;
double r288549 = r288545 * r288548;
double r288550 = r288549 / r288547;
return r288550;
}
double f(double x, double y, double z) {
double r288551 = x;
double r288552 = z;
double r288553 = y;
double r288554 = r288553 + r288552;
double r288555 = r288552 / r288554;
double r288556 = r288551 / r288555;
return r288556;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 12.6 |
|---|---|
| Target | 3.2 |
| Herbie | 3.2 |
if z < -1.072355443395786e-234 or 6.538483641819976e-134 < z Initial program 13.0
rmApplied associate-/l*1.6
if -1.072355443395786e-234 < z < 6.538483641819976e-134Initial program 10.4
Taylor expanded around 0 7.8
Final simplification3.2
herbie shell --seed 2019303
(FPCore (x y z)
:name "Numeric.SpecFunctions:choose from math-functions-0.1.5.2"
:precision binary64
:herbie-target
(/ x (/ z (+ y z)))
(/ (* x (+ y z)) z))