\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}{x + y} \cdot \frac{\frac{y}{\left(x + y\right) + 1}}{x + y}double f(double x, double y) {
double r307281 = x;
double r307282 = y;
double r307283 = r307281 * r307282;
double r307284 = r307281 + r307282;
double r307285 = r307284 * r307284;
double r307286 = 1.0;
double r307287 = r307284 + r307286;
double r307288 = r307285 * r307287;
double r307289 = r307283 / r307288;
return r307289;
}
double f(double x, double y) {
double r307290 = x;
double r307291 = y;
double r307292 = r307290 + r307291;
double r307293 = r307290 / r307292;
double r307294 = 1.0;
double r307295 = r307292 + r307294;
double r307296 = r307291 / r307295;
double r307297 = r307296 / r307292;
double r307298 = r307293 * r307297;
return r307298;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.0
rmApplied times-frac8.2
rmApplied associate-/r*0.2
rmApplied div-inv0.2
Applied associate-*l*0.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2020046
(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))))