\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r604256 = x;
double r604257 = y;
double r604258 = r604256 * r604257;
double r604259 = 1.0;
double r604260 = r604257 + r604259;
double r604261 = r604258 / r604260;
return r604261;
}
double f(double x, double y) {
double r604262 = x;
double r604263 = y;
double r604264 = 1.0;
double r604265 = r604263 + r604264;
double r604266 = r604263 / r604265;
double r604267 = r604262 * r604266;
return r604267;
}




Bits error versus x




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