\frac{x \cdot y}{y + 1}\frac{x}{\frac{y + 1}{y}}double f(double x, double y) {
double r632942 = x;
double r632943 = y;
double r632944 = r632942 * r632943;
double r632945 = 1.0;
double r632946 = r632943 + r632945;
double r632947 = r632944 / r632946;
return r632947;
}
double f(double x, double y) {
double r632948 = x;
double r632949 = y;
double r632950 = 1.0;
double r632951 = r632949 + r632950;
double r632952 = r632951 / r632949;
double r632953 = r632948 / r632952;
return r632953;
}




Bits error versus x




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