\frac{x \cdot y}{y + 1.0}\frac{y}{y + 1.0} \cdot xdouble f(double x, double y) {
double r38821940 = x;
double r38821941 = y;
double r38821942 = r38821940 * r38821941;
double r38821943 = 1.0;
double r38821944 = r38821941 + r38821943;
double r38821945 = r38821942 / r38821944;
return r38821945;
}
double f(double x, double y) {
double r38821946 = y;
double r38821947 = 1.0;
double r38821948 = r38821946 + r38821947;
double r38821949 = r38821946 / r38821948;
double r38821950 = x;
double r38821951 = r38821949 * r38821950;
return r38821951;
}




Bits error versus x




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