\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r585411 = x;
double r585412 = y;
double r585413 = r585411 * r585412;
double r585414 = 1.0;
double r585415 = r585412 + r585414;
double r585416 = r585413 / r585415;
return r585416;
}
double f(double x, double y) {
double r585417 = x;
double r585418 = y;
double r585419 = 1.0;
double r585420 = r585418 + r585419;
double r585421 = r585418 / r585420;
double r585422 = r585417 * r585421;
return r585422;
}




Bits error versus x




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