\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}{y + x}}{x + y} \cdot y}{\left(x + y\right) + 1}double f(double x, double y) {
double r1091323 = x;
double r1091324 = y;
double r1091325 = r1091323 * r1091324;
double r1091326 = r1091323 + r1091324;
double r1091327 = r1091326 * r1091326;
double r1091328 = 1.0;
double r1091329 = r1091326 + r1091328;
double r1091330 = r1091327 * r1091329;
double r1091331 = r1091325 / r1091330;
return r1091331;
}
double f(double x, double y) {
double r1091332 = x;
double r1091333 = y;
double r1091334 = r1091333 + r1091332;
double r1091335 = r1091332 / r1091334;
double r1091336 = r1091332 + r1091333;
double r1091337 = r1091335 / r1091336;
double r1091338 = r1091337 * r1091333;
double r1091339 = 1.0;
double r1091340 = r1091336 + r1091339;
double r1091341 = r1091338 / r1091340;
return r1091341;
}




Bits error versus x




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