\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{y}{\left(x + y\right) + 1} \cdot \frac{x}{x + y}}{x + y}double f(double x, double y) {
double r510481 = x;
double r510482 = y;
double r510483 = r510481 * r510482;
double r510484 = r510481 + r510482;
double r510485 = r510484 * r510484;
double r510486 = 1.0;
double r510487 = r510484 + r510486;
double r510488 = r510485 * r510487;
double r510489 = r510483 / r510488;
return r510489;
}
double f(double x, double y) {
double r510490 = y;
double r510491 = x;
double r510492 = r510491 + r510490;
double r510493 = 1.0;
double r510494 = r510492 + r510493;
double r510495 = r510490 / r510494;
double r510496 = r510491 / r510492;
double r510497 = r510495 * r510496;
double r510498 = r510497 / r510492;
return r510498;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.7 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 19.7
rmApplied times-frac8.1
rmApplied associate-/r*0.2
rmApplied add-sqr-sqrt33.1
Applied add-sqr-sqrt33.2
Applied *-un-lft-identity33.2
Applied times-frac33.2
Applied times-frac33.2
Simplified33.1
Simplified0.2
rmApplied associate-*r/0.2
Applied associate-*l/0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020065
(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))))