\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}}{x + y}double f(double x, double y) {
double r545465 = x;
double r545466 = y;
double r545467 = r545465 * r545466;
double r545468 = r545465 + r545466;
double r545469 = r545468 * r545468;
double r545470 = 1.0;
double r545471 = r545468 + r545470;
double r545472 = r545469 * r545471;
double r545473 = r545467 / r545472;
return r545473;
}
double f(double x, double y) {
double r545474 = x;
double r545475 = y;
double r545476 = r545474 + r545475;
double r545477 = r545474 / r545476;
double r545478 = 1.0;
double r545479 = r545476 + r545478;
double r545480 = r545475 / r545479;
double r545481 = r545480 / r545476;
double r545482 = r545477 * r545481;
return r545482;
}




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.2
rmApplied associate-/r*0.2
rmApplied div-inv0.2
Applied associate-*l*0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020046
(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))))