\frac{x \cdot y}{y + 1}\frac{y}{1 + y} \cdot xdouble f(double x, double y) {
double r33274680 = x;
double r33274681 = y;
double r33274682 = r33274680 * r33274681;
double r33274683 = 1.0;
double r33274684 = r33274681 + r33274683;
double r33274685 = r33274682 / r33274684;
return r33274685;
}
double f(double x, double y) {
double r33274686 = y;
double r33274687 = 1.0;
double r33274688 = r33274687 + r33274686;
double r33274689 = r33274686 / r33274688;
double r33274690 = x;
double r33274691 = r33274689 * r33274690;
return r33274691;
}




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