\frac{x \cdot y}{y + 1.0}\frac{y - 1.0}{y + 1.0} \cdot \left(\frac{y}{y - 1.0} \cdot x\right)double f(double x, double y) {
double r36237589 = x;
double r36237590 = y;
double r36237591 = r36237589 * r36237590;
double r36237592 = 1.0;
double r36237593 = r36237590 + r36237592;
double r36237594 = r36237591 / r36237593;
return r36237594;
}
double f(double x, double y) {
double r36237595 = y;
double r36237596 = 1.0;
double r36237597 = r36237595 - r36237596;
double r36237598 = r36237595 + r36237596;
double r36237599 = r36237597 / r36237598;
double r36237600 = r36237595 / r36237597;
double r36237601 = x;
double r36237602 = r36237600 * r36237601;
double r36237603 = r36237599 * r36237602;
return r36237603;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.3 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 7.3
rmApplied flip-+17.1
Applied associate-/r/18.8
Simplified7.3
rmApplied div-inv7.3
Applied associate-*l*0.1
Simplified0.0
Final simplification0.0
herbie shell --seed 2019168
(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)))