\frac{x \cdot y}{y + 1.0}\frac{x}{\frac{y + 1.0}{y}}double f(double x, double y) {
double r33027867 = x;
double r33027868 = y;
double r33027869 = r33027867 * r33027868;
double r33027870 = 1.0;
double r33027871 = r33027868 + r33027870;
double r33027872 = r33027869 / r33027871;
return r33027872;
}
double f(double x, double y) {
double r33027873 = x;
double r33027874 = y;
double r33027875 = 1.0;
double r33027876 = r33027874 + r33027875;
double r33027877 = r33027876 / r33027874;
double r33027878 = r33027873 / r33027877;
return r33027878;
}




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)))