\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 \cdot \frac{x}{x + y}}{x + y}}{\left(x + y\right) + 1}double f(double x, double y) {
double r429267 = x;
double r429268 = y;
double r429269 = r429267 * r429268;
double r429270 = r429267 + r429268;
double r429271 = r429270 * r429270;
double r429272 = 1.0;
double r429273 = r429270 + r429272;
double r429274 = r429271 * r429273;
double r429275 = r429269 / r429274;
return r429275;
}
double f(double x, double y) {
double r429276 = y;
double r429277 = x;
double r429278 = r429277 + r429276;
double r429279 = r429277 / r429278;
double r429280 = r429276 * r429279;
double r429281 = r429280 / r429278;
double r429282 = 1.0;
double r429283 = r429278 + r429282;
double r429284 = r429281 / r429283;
return r429284;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.2
rmApplied distribute-lft-in20.2
rmApplied times-frac10.8
Simplified8.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
(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))))