\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1\right)}\frac{x}{x + y} \cdot \frac{\frac{y}{\left(x + y\right) + 1}}{y + x}double f(double x, double y) {
double r382795 = x;
double r382796 = y;
double r382797 = r382795 * r382796;
double r382798 = r382795 + r382796;
double r382799 = r382798 * r382798;
double r382800 = 1.0;
double r382801 = r382798 + r382800;
double r382802 = r382799 * r382801;
double r382803 = r382797 / r382802;
return r382803;
}
double f(double x, double y) {
double r382804 = x;
double r382805 = y;
double r382806 = r382804 + r382805;
double r382807 = r382804 / r382806;
double r382808 = 1.0;
double r382809 = r382806 + r382808;
double r382810 = r382805 / r382809;
double r382811 = r382805 + r382804;
double r382812 = r382810 / r382811;
double r382813 = r382807 * r382812;
return r382813;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.0
rmApplied times-frac7.9
rmApplied associate-/r*0.2
rmApplied div-inv0.2
Applied associate-*l*0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2019323 +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))))