\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{x}{x + y} \cdot \frac{y}{x + y}}{\left(x + y\right) + 1}double f(double x, double y) {
double r407256 = x;
double r407257 = y;
double r407258 = r407256 * r407257;
double r407259 = r407256 + r407257;
double r407260 = r407259 * r407259;
double r407261 = 1.0;
double r407262 = r407259 + r407261;
double r407263 = r407260 * r407262;
double r407264 = r407258 / r407263;
return r407264;
}
double f(double x, double y) {
double r407265 = x;
double r407266 = y;
double r407267 = r407265 + r407266;
double r407268 = r407265 / r407267;
double r407269 = r407266 / r407267;
double r407270 = r407268 * r407269;
double r407271 = 1.0;
double r407272 = r407267 + r407271;
double r407273 = r407270 / r407272;
return r407273;
}




Bits error versus x




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