\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r532624 = x;
double r532625 = y;
double r532626 = r532624 * r532625;
double r532627 = 1.0;
double r532628 = r532625 + r532627;
double r532629 = r532626 / r532628;
return r532629;
}
double f(double x, double y) {
double r532630 = x;
double r532631 = y;
double r532632 = 1.0;
double r532633 = r532631 + r532632;
double r532634 = r532631 / r532633;
double r532635 = r532630 * r532634;
return r532635;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.4 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 8.4
rmApplied *-un-lft-identity8.4
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019199
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:herbie-target
(if (< y -3693.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1.0)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1.0)))