\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r737224 = x;
double r737225 = y;
double r737226 = r737224 * r737225;
double r737227 = 1.0;
double r737228 = r737225 + r737227;
double r737229 = r737226 / r737228;
return r737229;
}
double f(double x, double y) {
double r737230 = x;
double r737231 = y;
double r737232 = 1.0;
double r737233 = r737231 + r737232;
double r737234 = r737231 / r737233;
double r737235 = r737230 * r737234;
return r737235;
}




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