\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r48350381 = x;
double r48350382 = y;
double r48350383 = r48350381 * r48350382;
double r48350384 = 1.0;
double r48350385 = r48350382 + r48350384;
double r48350386 = r48350383 / r48350385;
return r48350386;
}
double f(double x, double y) {
double r48350387 = x;
double r48350388 = y;
double r48350389 = 1.0;
double r48350390 = r48350388 + r48350389;
double r48350391 = r48350388 / r48350390;
double r48350392 = r48350387 * r48350391;
return r48350392;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.2 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 8.2
rmApplied *-un-lft-identity8.2
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019174
(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)))