\frac{x \cdot y}{\left(\left(x + y\right) \cdot \left(x + y\right)\right) \cdot \left(\left(x + y\right) + 1.0\right)}\frac{\frac{\frac{x}{y + x} \cdot y}{\left(y + x\right) + 1.0}}{y + x}double f(double x, double y) {
double r18497324 = x;
double r18497325 = y;
double r18497326 = r18497324 * r18497325;
double r18497327 = r18497324 + r18497325;
double r18497328 = r18497327 * r18497327;
double r18497329 = 1.0;
double r18497330 = r18497327 + r18497329;
double r18497331 = r18497328 * r18497330;
double r18497332 = r18497326 / r18497331;
return r18497332;
}
double f(double x, double y) {
double r18497333 = x;
double r18497334 = y;
double r18497335 = r18497334 + r18497333;
double r18497336 = r18497333 / r18497335;
double r18497337 = r18497336 * r18497334;
double r18497338 = 1.0;
double r18497339 = r18497335 + r18497338;
double r18497340 = r18497337 / r18497339;
double r18497341 = r18497340 / r18497335;
return r18497341;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.3 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 19.3
rmApplied times-frac8.0
rmApplied *-un-lft-identity8.0
Applied times-frac0.2
Applied associate-*l*0.2
rmApplied associate-*l/7.2
Applied associate-*r/7.2
Simplified0.1
Final simplification0.1
herbie shell --seed 2019168
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, A"
:herbie-target
(/ (/ (/ x (+ (+ y 1) x)) (+ y x)) (/ 1 (/ y (+ y x))))
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))