\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{\sqrt[3]{x} \cdot \sqrt[3]{x}}{\sqrt[3]{x + y} \cdot \sqrt[3]{x + y}}}{\frac{x + y}{\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}}} \cdot y}{\left(x + y\right) + 1}double f(double x, double y) {
double r403665 = x;
double r403666 = y;
double r403667 = r403665 * r403666;
double r403668 = r403665 + r403666;
double r403669 = r403668 * r403668;
double r403670 = 1.0;
double r403671 = r403668 + r403670;
double r403672 = r403669 * r403671;
double r403673 = r403667 / r403672;
return r403673;
}
double f(double x, double y) {
double r403674 = x;
double r403675 = cbrt(r403674);
double r403676 = r403675 * r403675;
double r403677 = y;
double r403678 = r403674 + r403677;
double r403679 = cbrt(r403678);
double r403680 = r403679 * r403679;
double r403681 = r403676 / r403680;
double r403682 = r403675 / r403679;
double r403683 = r403678 / r403682;
double r403684 = r403681 / r403683;
double r403685 = r403684 * r403677;
double r403686 = 1.0;
double r403687 = r403678 + r403686;
double r403688 = r403685 / r403687;
return r403688;
}




Bits error versus x




Bits error versus y
Results
| Original | 20.0 |
|---|---|
| Target | 0.1 |
| Herbie | 0.5 |
Initial program 20.0
rmApplied times-frac7.8
rmApplied associate-/r*0.2
rmApplied associate-*r/0.2
rmApplied add-cube-cbrt0.7
Applied add-cube-cbrt0.5
Applied times-frac0.5
Applied associate-/l*0.5
Final simplification0.5
herbie shell --seed 2020036 +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))))