\frac{x \cdot y}{y + 1}\frac{y - 1}{y + 1} \cdot \left(\frac{y}{y - 1} \cdot x\right)double f(double x, double y) {
double r33944369 = x;
double r33944370 = y;
double r33944371 = r33944369 * r33944370;
double r33944372 = 1.0;
double r33944373 = r33944370 + r33944372;
double r33944374 = r33944371 / r33944373;
return r33944374;
}
double f(double x, double y) {
double r33944375 = y;
double r33944376 = 1.0;
double r33944377 = r33944375 - r33944376;
double r33944378 = r33944375 + r33944376;
double r33944379 = r33944377 / r33944378;
double r33944380 = r33944375 / r33944377;
double r33944381 = x;
double r33944382 = r33944380 * r33944381;
double r33944383 = r33944379 * r33944382;
return r33944383;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.8 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 7.8
rmApplied flip-+17.4
Applied associate-/r/19.2
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)))