\frac{x \cdot y}{y + 1}\frac{x}{\frac{y + 1}{y}}double f(double x, double y) {
double r630217 = x;
double r630218 = y;
double r630219 = r630217 * r630218;
double r630220 = 1.0;
double r630221 = r630218 + r630220;
double r630222 = r630219 / r630221;
return r630222;
}
double f(double x, double y) {
double r630223 = x;
double r630224 = y;
double r630225 = 1.0;
double r630226 = r630224 + r630225;
double r630227 = r630226 / r630224;
double r630228 = r630223 / r630227;
return r630228;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 8.0
rmApplied associate-/l*0.1
Final simplification0.1
herbie shell --seed 2020064 +o rules:numerics
(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)))