\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{y}{\left(x + y\right) + 1.0} \cdot \left(\frac{1}{x + y} \cdot x\right)}{x + y}double f(double x, double y) {
double r7392555 = x;
double r7392556 = y;
double r7392557 = r7392555 * r7392556;
double r7392558 = r7392555 + r7392556;
double r7392559 = r7392558 * r7392558;
double r7392560 = 1.0;
double r7392561 = r7392558 + r7392560;
double r7392562 = r7392559 * r7392561;
double r7392563 = r7392557 / r7392562;
return r7392563;
}
double f(double x, double y) {
double r7392564 = y;
double r7392565 = x;
double r7392566 = r7392565 + r7392564;
double r7392567 = 1.0;
double r7392568 = r7392566 + r7392567;
double r7392569 = r7392564 / r7392568;
double r7392570 = 1.0;
double r7392571 = r7392570 / r7392566;
double r7392572 = r7392571 * r7392565;
double r7392573 = r7392569 * r7392572;
double r7392574 = r7392573 / r7392566;
return r7392574;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.4 |
|---|---|
| Target | 0.1 |
| 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.7
Applied associate-*r/7.7
Simplified0.1
rmApplied div-inv0.2
Final simplification0.2
herbie shell --seed 2019156 +o rules:numerics
(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))))