\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{x}{x + y} \cdot \left(y \cdot \frac{1}{\left(x + y\right) + 1}\right)}{y + x} \cdot \left(\sqrt[3]{1} \cdot \sqrt[3]{1}\right)double f(double x, double y) {
double r629319 = x;
double r629320 = y;
double r629321 = r629319 * r629320;
double r629322 = r629319 + r629320;
double r629323 = r629322 * r629322;
double r629324 = 1.0;
double r629325 = r629322 + r629324;
double r629326 = r629323 * r629325;
double r629327 = r629321 / r629326;
return r629327;
}
double f(double x, double y) {
double r629328 = x;
double r629329 = y;
double r629330 = r629328 + r629329;
double r629331 = r629328 / r629330;
double r629332 = 1.0;
double r629333 = 1.0;
double r629334 = r629330 + r629333;
double r629335 = r629332 / r629334;
double r629336 = r629329 * r629335;
double r629337 = r629331 * r629336;
double r629338 = r629329 + r629328;
double r629339 = r629337 / r629338;
double r629340 = cbrt(r629332);
double r629341 = r629340 * r629340;
double r629342 = r629339 * r629341;
return r629342;
}




Bits error versus x




Bits error versus y
Results
| Original | 19.1 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
Initial program 19.1
rmApplied times-frac7.5
rmApplied *-un-lft-identity7.5
Applied times-frac0.2
Applied associate-*l*0.2
rmApplied *-un-lft-identity0.2
Applied add-cube-cbrt0.2
Applied times-frac0.2
Applied associate-*l*0.2
Simplified0.1
rmApplied div-inv0.1
Final simplification0.1
herbie shell --seed 2019351 +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))))