\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r692912 = x;
double r692913 = y;
double r692914 = r692912 * r692913;
double r692915 = 1.0;
double r692916 = r692913 + r692915;
double r692917 = r692914 / r692916;
return r692917;
}
double f(double x, double y) {
double r692918 = x;
double r692919 = y;
double r692920 = 1.0;
double r692921 = r692919 + r692920;
double r692922 = r692919 / r692921;
double r692923 = r692918 * r692922;
return r692923;
}




Bits error versus x




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