\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{\frac{x}{y + x} \cdot y}{1 + \left(y + x\right)}}{y + x}double f(double x, double y) {
double r16434176 = x;
double r16434177 = y;
double r16434178 = r16434176 * r16434177;
double r16434179 = r16434176 + r16434177;
double r16434180 = r16434179 * r16434179;
double r16434181 = 1.0;
double r16434182 = r16434179 + r16434181;
double r16434183 = r16434180 * r16434182;
double r16434184 = r16434178 / r16434183;
return r16434184;
}
double f(double x, double y) {
double r16434185 = x;
double r16434186 = y;
double r16434187 = r16434186 + r16434185;
double r16434188 = r16434185 / r16434187;
double r16434189 = r16434188 * r16434186;
double r16434190 = 1.0;
double r16434191 = r16434190 + r16434187;
double r16434192 = r16434189 / r16434191;
double r16434193 = r16434192 / r16434187;
return r16434193;
}




Bits error versus x




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