\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r398705 = x;
double r398706 = y;
double r398707 = r398705 * r398706;
double r398708 = 1.0;
double r398709 = r398706 + r398708;
double r398710 = r398707 / r398709;
return r398710;
}
double f(double x, double y) {
double r398711 = x;
double r398712 = y;
double r398713 = 1.0;
double r398714 = r398712 + r398713;
double r398715 = r398712 / r398714;
double r398716 = r398711 * r398715;
return r398716;
}




Bits error versus x




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