\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r607875 = x;
double r607876 = y;
double r607877 = r607875 * r607876;
double r607878 = 1.0;
double r607879 = r607876 + r607878;
double r607880 = r607877 / r607879;
return r607880;
}
double f(double x, double y) {
double r607881 = x;
double r607882 = y;
double r607883 = 1.0;
double r607884 = r607882 + r607883;
double r607885 = r607882 / r607884;
double r607886 = r607881 * r607885;
return r607886;
}




Bits error versus x




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