\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{1}{\frac{\left(x + y\right) + 1}{y}} \cdot \frac{x}{x + y}}{x + y}double f(double x, double y) {
double r371498 = x;
double r371499 = y;
double r371500 = r371498 * r371499;
double r371501 = r371498 + r371499;
double r371502 = r371501 * r371501;
double r371503 = 1.0;
double r371504 = r371501 + r371503;
double r371505 = r371502 * r371504;
double r371506 = r371500 / r371505;
return r371506;
}
double f(double x, double y) {
double r371507 = 1.0;
double r371508 = x;
double r371509 = y;
double r371510 = r371508 + r371509;
double r371511 = 1.0;
double r371512 = r371510 + r371511;
double r371513 = r371512 / r371509;
double r371514 = r371507 / r371513;
double r371515 = r371508 / r371510;
double r371516 = r371514 * r371515;
double r371517 = r371516 / r371510;
return r371517;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 19.4
rmApplied times-frac7.8
rmApplied *-un-lft-identity7.8
Applied times-frac0.2
Applied associate-*l*0.2
rmApplied associate-*l/7.2
Applied associate-*r/7.2
Simplified0.1
rmApplied clear-num0.2
Final simplification0.2
herbie shell --seed 2019235
(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))))