\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r29051365 = x;
double r29051366 = y;
double r29051367 = r29051365 * r29051366;
double r29051368 = 1.0;
double r29051369 = r29051366 + r29051368;
double r29051370 = r29051367 / r29051369;
return r29051370;
}
double f(double x, double y) {
double r29051371 = y;
double r29051372 = 1.0;
double r29051373 = r29051371 + r29051372;
double r29051374 = r29051371 / r29051373;
double r29051375 = x;
double r29051376 = r29051374 * r29051375;
return r29051376;
}




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 +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)))