\frac{x \cdot y}{y + 1}\frac{x}{\frac{y + 1}{y}}double f(double x, double y) {
double r3810 = x;
double r3811 = y;
double r3812 = r3810 * r3811;
double r3813 = 1.0;
double r3814 = r3811 + r3813;
double r3815 = r3812 / r3814;
return r3815;
}
double f(double x, double y) {
double r3816 = x;
double r3817 = y;
double r3818 = 1.0;
double r3819 = r3817 + r3818;
double r3820 = r3819 / r3817;
double r3821 = r3816 / r3820;
return r3821;
}




Bits error versus x




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