\frac{x \cdot y}{y + 1}\frac{y}{y + 1} \cdot xdouble f(double x, double y) {
double r32221683 = x;
double r32221684 = y;
double r32221685 = r32221683 * r32221684;
double r32221686 = 1.0;
double r32221687 = r32221684 + r32221686;
double r32221688 = r32221685 / r32221687;
return r32221688;
}
double f(double x, double y) {
double r32221689 = y;
double r32221690 = 1.0;
double r32221691 = r32221689 + r32221690;
double r32221692 = r32221689 / r32221691;
double r32221693 = x;
double r32221694 = r32221692 * r32221693;
return r32221694;
}




Bits error versus x




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