\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{\frac{x}{x + y} \cdot y}{x + y}}{\left(x + y\right) + 1}double f(double x, double y) {
double r210439 = x;
double r210440 = y;
double r210441 = r210439 * r210440;
double r210442 = r210439 + r210440;
double r210443 = r210442 * r210442;
double r210444 = 1.0;
double r210445 = r210442 + r210444;
double r210446 = r210443 * r210445;
double r210447 = r210441 / r210446;
return r210447;
}
double f(double x, double y) {
double r210448 = x;
double r210449 = y;
double r210450 = r210448 + r210449;
double r210451 = r210448 / r210450;
double r210452 = r210451 * r210449;
double r210453 = r210452 / r210450;
double r210454 = 1.0;
double r210455 = r210450 + r210454;
double r210456 = r210453 / r210455;
return r210456;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.2
rmApplied times-frac8.3
rmApplied *-un-lft-identity8.3
Applied times-frac0.2
Applied associate-*l*0.2
rmApplied associate-*r/0.2
Applied associate-*r/0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2019326 +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))))