\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}{y + x} \cdot \frac{\frac{y}{\left(y + x\right) + 1}}{y + x}double f(double x, double y) {
double r18911120 = x;
double r18911121 = y;
double r18911122 = r18911120 * r18911121;
double r18911123 = r18911120 + r18911121;
double r18911124 = r18911123 * r18911123;
double r18911125 = 1.0;
double r18911126 = r18911123 + r18911125;
double r18911127 = r18911124 * r18911126;
double r18911128 = r18911122 / r18911127;
return r18911128;
}
double f(double x, double y) {
double r18911129 = x;
double r18911130 = y;
double r18911131 = r18911130 + r18911129;
double r18911132 = r18911129 / r18911131;
double r18911133 = 1.0;
double r18911134 = r18911131 + r18911133;
double r18911135 = r18911130 / r18911134;
double r18911136 = r18911135 / r18911131;
double r18911137 = r18911132 * r18911136;
return r18911137;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 20.2
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 2019192
(FPCore (x y)
:name "Numeric.SpecFunctions:incompleteBetaApprox from math-functions-0.1.5.2, A"
:herbie-target
(/ (/ (/ x (+ (+ y 1.0) x)) (+ y x)) (/ 1.0 (/ y (+ y x))))
(/ (* x y) (* (* (+ x y) (+ x y)) (+ (+ x y) 1.0))))