\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 \cdot \frac{\frac{y}{\left(x + y\right) + 1}}{x + y}}{x + y} \cdot \sqrt{1}double f(double x, double y) {
double r436725 = x;
double r436726 = y;
double r436727 = r436725 * r436726;
double r436728 = r436725 + r436726;
double r436729 = r436728 * r436728;
double r436730 = 1.0;
double r436731 = r436728 + r436730;
double r436732 = r436729 * r436731;
double r436733 = r436727 / r436732;
return r436733;
}
double f(double x, double y) {
double r436734 = x;
double r436735 = y;
double r436736 = r436734 + r436735;
double r436737 = 1.0;
double r436738 = r436736 + r436737;
double r436739 = r436735 / r436738;
double r436740 = r436739 / r436736;
double r436741 = r436734 * r436740;
double r436742 = r436741 / r436736;
double r436743 = 1.0;
double r436744 = sqrt(r436743);
double r436745 = r436742 * r436744;
return r436745;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.8 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 19.8
rmApplied times-frac8.0
rmApplied *-un-lft-identity8.0
Applied times-frac0.2
Applied associate-*l*0.2
rmApplied *-un-lft-identity0.2
Applied add-sqr-sqrt0.2
Applied times-frac0.2
Applied associate-*l*0.2
Simplified0.1
rmApplied div-inv0.2
Applied associate-*l*0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020024 +o rules:numerics
(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))))