\frac{x \cdot y}{y + 1.0}\frac{y}{y + 1.0} \cdot xdouble f(double x, double y) {
double r13972932 = x;
double r13972933 = y;
double r13972934 = r13972932 * r13972933;
double r13972935 = 1.0;
double r13972936 = r13972933 + r13972935;
double r13972937 = r13972934 / r13972936;
return r13972937;
}
double f(double x, double y) {
double r13972938 = y;
double r13972939 = 1.0;
double r13972940 = r13972938 + r13972939;
double r13972941 = r13972938 / r13972940;
double r13972942 = x;
double r13972943 = r13972941 * r13972942;
return r13972943;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.4 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 7.4
rmApplied *-un-lft-identity7.4
Applied times-frac0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019156
(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)))