\frac{x \cdot y}{y + 1.0}\frac{x}{\frac{y + 1.0}{y}}double f(double x, double y) {
double r33828927 = x;
double r33828928 = y;
double r33828929 = r33828927 * r33828928;
double r33828930 = 1.0;
double r33828931 = r33828928 + r33828930;
double r33828932 = r33828929 / r33828931;
return r33828932;
}
double f(double x, double y) {
double r33828933 = x;
double r33828934 = y;
double r33828935 = 1.0;
double r33828936 = r33828934 + r33828935;
double r33828937 = r33828936 / r33828934;
double r33828938 = r33828933 / r33828937;
return r33828938;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.6 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 7.6
rmApplied associate-/l*0.1
Final simplification0.1
herbie shell --seed 2019163
(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)))