\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r664275 = x;
double r664276 = y;
double r664277 = r664275 * r664276;
double r664278 = 1.0;
double r664279 = r664276 + r664278;
double r664280 = r664277 / r664279;
return r664280;
}
double f(double x, double y) {
double r664281 = x;
double r664282 = y;
double r664283 = 1.0;
double r664284 = r664282 + r664283;
double r664285 = r664282 / r664284;
double r664286 = r664281 * r664285;
return r664286;
}




Bits error versus x




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