\frac{x \cdot y}{y + 1}\frac{x}{\frac{y + 1}{y}}double f(double x, double y) {
double r681037 = x;
double r681038 = y;
double r681039 = r681037 * r681038;
double r681040 = 1.0;
double r681041 = r681038 + r681040;
double r681042 = r681039 / r681041;
return r681042;
}
double f(double x, double y) {
double r681043 = x;
double r681044 = y;
double r681045 = 1.0;
double r681046 = r681044 + r681045;
double r681047 = r681046 / r681044;
double r681048 = r681043 / r681047;
return r681048;
}




Bits error versus x




Bits error versus y
Results
| Original | 8.1 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 8.1
rmApplied associate-/l*0.1
Final simplification0.1
herbie shell --seed 2020021 +o rules:numerics
(FPCore (x y)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, B"
:precision binary64
:herbie-target
(if (< y -3693.8482788297247) (- (/ x (* y y)) (- (/ x y) x)) (if (< y 6799310503.41891) (/ (* x y) (+ y 1)) (- (/ x (* y y)) (- (/ x y) x))))
(/ (* x y) (+ y 1)))