\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r31661293 = x;
double r31661294 = y;
double r31661295 = r31661293 * r31661294;
double r31661296 = 1.0;
double r31661297 = r31661294 + r31661296;
double r31661298 = r31661295 / r31661297;
return r31661298;
}
double f(double x, double y) {
double r31661299 = y;
double r31661300 = 1.0;
double r31661301 = r31661299 + r31661300;
double r31661302 = r31661299 / r31661301;
double r31661303 = x;
double r31661304 = r31661302 * r31661303;
return r31661304;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.9 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 7.9
rmApplied *-un-lft-identity7.9
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019192 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:herbie-target
(if (< y -3693.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1.0)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1.0)))