\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 r465228 = x;
double r465229 = y;
double r465230 = r465228 * r465229;
double r465231 = r465228 + r465229;
double r465232 = r465231 * r465231;
double r465233 = 1.0;
double r465234 = r465231 + r465233;
double r465235 = r465232 * r465234;
double r465236 = r465230 / r465235;
return r465236;
}
double f(double x, double y) {
double r465237 = x;
double r465238 = cbrt(r465237);
double r465239 = r465238 * r465238;
double r465240 = y;
double r465241 = r465237 + r465240;
double r465242 = cbrt(r465241);
double r465243 = r465242 * r465242;
double r465244 = r465239 / r465243;
double r465245 = r465238 / r465242;
double r465246 = r465241 / r465245;
double r465247 = r465244 / r465246;
double r465248 = r465247 * r465240;
double r465249 = 1.0;
double r465250 = r465241 + r465249;
double r465251 = r465248 / r465250;
return r465251;
}




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
(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))))