\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r647031 = x;
double r647032 = y;
double r647033 = r647031 * r647032;
double r647034 = 1.0;
double r647035 = r647032 + r647034;
double r647036 = r647033 / r647035;
return r647036;
}
double f(double x, double y) {
double r647037 = x;
double r647038 = y;
double r647039 = 1.0;
double r647040 = r647038 + r647039;
double r647041 = r647038 / r647040;
double r647042 = r647037 * r647041;
return r647042;
}




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