\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 r396110 = x;
double r396111 = y;
double r396112 = r396110 * r396111;
double r396113 = r396110 + r396111;
double r396114 = r396113 * r396113;
double r396115 = 1.0;
double r396116 = r396113 + r396115;
double r396117 = r396114 * r396116;
double r396118 = r396112 / r396117;
return r396118;
}
double f(double x, double y) {
double r396119 = x;
double r396120 = y;
double r396121 = r396119 + r396120;
double r396122 = r396119 / r396121;
double r396123 = 1.0;
double r396124 = r396121 + r396123;
double r396125 = r396120 / r396124;
double r396126 = r396125 / r396121;
double r396127 = r396122 * r396126;
return r396127;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.7 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 19.7
rmApplied times-frac8.0
rmApplied associate-/r*0.2
rmApplied associate-*l/0.1
rmApplied *-un-lft-identity0.1
Applied times-frac0.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2020062 +o rules:numerics
(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))))