\frac{x \cdot y}{y + 1}\frac{x}{\frac{y + 1}{y}}double f(double x, double y) {
double r613374 = x;
double r613375 = y;
double r613376 = r613374 * r613375;
double r613377 = 1.0;
double r613378 = r613375 + r613377;
double r613379 = r613376 / r613378;
return r613379;
}
double f(double x, double y) {
double r613380 = x;
double r613381 = y;
double r613382 = 1.0;
double r613383 = r613381 + r613382;
double r613384 = r613383 / r613381;
double r613385 = r613380 / r613384;
return r613385;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.3 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 8.3
rmApplied associate-/l*0.1
Final simplification0.1
herbie shell --seed 2020083
(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)))