\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} \cdot y}{x + y}}{\left(x + y\right) + 1}double f(double x, double y) {
double r453697 = x;
double r453698 = y;
double r453699 = r453697 * r453698;
double r453700 = r453697 + r453698;
double r453701 = r453700 * r453700;
double r453702 = 1.0;
double r453703 = r453700 + r453702;
double r453704 = r453701 * r453703;
double r453705 = r453699 / r453704;
return r453705;
}
double f(double x, double y) {
double r453706 = x;
double r453707 = y;
double r453708 = r453706 + r453707;
double r453709 = r453706 / r453708;
double r453710 = r453709 * r453707;
double r453711 = r453710 / r453708;
double r453712 = 1.0;
double r453713 = r453708 + r453712;
double r453714 = r453711 / r453713;
return r453714;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.1
rmApplied times-frac7.9
rmApplied *-un-lft-identity7.9
Applied times-frac0.2
Applied associate-*l*0.2
rmApplied associate-*r/0.2
Applied associate-*r/0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020020
(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))))