\frac{x \cdot y}{y + 1}x \cdot \frac{y}{y + 1}double f(double x, double y) {
double r43115490 = x;
double r43115491 = y;
double r43115492 = r43115490 * r43115491;
double r43115493 = 1.0;
double r43115494 = r43115491 + r43115493;
double r43115495 = r43115492 / r43115494;
return r43115495;
}
double f(double x, double y) {
double r43115496 = x;
double r43115497 = y;
double r43115498 = 1.0;
double r43115499 = r43115497 + r43115498;
double r43115500 = r43115497 / r43115499;
double r43115501 = r43115496 * r43115500;
return r43115501;
}




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 2019174 +o rules:numerics
(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)))