\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}\frac{\frac{\frac{x}{x + y}}{x + y} \cdot y}{\left(x + y\right) + 1}double f(double x, double y) {
double r443788 = x;
double r443789 = y;
double r443790 = r443788 * r443789;
double r443791 = r443788 + r443789;
double r443792 = r443791 * r443791;
double r443793 = 1.0;
double r443794 = r443791 + r443793;
double r443795 = r443792 * r443794;
double r443796 = r443790 / r443795;
return r443796;
}
double f(double x, double y) {
double r443797 = x;
double r443798 = y;
double r443799 = r443797 + r443798;
double r443800 = r443797 / r443799;
double r443801 = r443800 / r443799;
double r443802 = r443801 * r443798;
double r443803 = 1.0;
double r443804 = r443799 + r443803;
double r443805 = r443802 / r443804;
return r443805;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.8 |
|---|---|
| Target | 0.1 |
| Herbie | 0.2 |
Initial program 19.8
rmApplied times-frac7.8
rmApplied associate-/r*0.2
rmApplied associate-*r/0.2
Final simplification0.2
herbie shell --seed 2020025 +o rules:numerics
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, A"
:precision binary64
:herbie-target
(/ (/ (/ x (+ (+ y 1) x)) (+ y x)) (/ 1 (/ y (+ y x))))
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1))))