\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}{\left(x + y\right) + 1}}{x + y}double f(double x, double y) {
double r447279 = x;
double r447280 = y;
double r447281 = r447279 * r447280;
double r447282 = r447279 + r447280;
double r447283 = r447282 * r447282;
double r447284 = 1.0;
double r447285 = r447282 + r447284;
double r447286 = r447283 * r447285;
double r447287 = r447281 / r447286;
return r447287;
}
double f(double x, double y) {
double r447288 = x;
double r447289 = y;
double r447290 = r447288 + r447289;
double r447291 = r447288 / r447290;
double r447292 = 1.0;
double r447293 = r447290 + r447292;
double r447294 = r447289 / r447293;
double r447295 = r447291 * r447294;
double r447296 = r447295 / r447290;
return r447296;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.0
rmApplied times-frac8.0
rmApplied associate-/r*0.2
rmApplied associate-*l/0.1
Final simplification0.1
herbie shell --seed 2020049
(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))))