\frac{x \cdot y}{y + 1}\frac{x}{\frac{y + 1}{y}}double f(double x, double y) {
double r423233 = x;
double r423234 = y;
double r423235 = r423233 * r423234;
double r423236 = 1.0;
double r423237 = r423234 + r423236;
double r423238 = r423235 / r423237;
return r423238;
}
double f(double x, double y) {
double r423239 = x;
double r423240 = y;
double r423241 = 1.0;
double r423242 = r423240 + r423241;
double r423243 = r423242 / r423240;
double r423244 = r423239 / r423243;
return r423244;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.1 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 8.1
rmApplied associate-/l*0.1
Final simplification0.1
herbie shell --seed 2019323
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:precision binary64
:herbie-target
(if (< y -3693.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1)))