\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r43868748 = x;
double r43868749 = y;
double r43868750 = r43868748 * r43868749;
double r43868751 = 1.0;
double r43868752 = r43868749 + r43868751;
double r43868753 = r43868750 / r43868752;
return r43868753;
}
double f(double x, double y) {
double r43868754 = y;
double r43868755 = 1.0;
double r43868756 = r43868754 + r43868755;
double r43868757 = r43868754 / r43868756;
double r43868758 = x;
double r43868759 = r43868757 * r43868758;
return r43868759;
}




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 2019171
(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)))