\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\frac{e^{\left(x \cdot 2\right) \cdot \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)} \cdot {\left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)}^{x}}{x}double f(double x, double y) {
double r404991 = x;
double r404992 = y;
double r404993 = r404991 + r404992;
double r404994 = r404991 / r404993;
double r404995 = log(r404994);
double r404996 = r404991 * r404995;
double r404997 = exp(r404996);
double r404998 = r404997 / r404991;
return r404998;
}
double f(double x, double y) {
double r404999 = x;
double r405000 = 2.0;
double r405001 = r404999 * r405000;
double r405002 = cbrt(r404999);
double r405003 = y;
double r405004 = r404999 + r405003;
double r405005 = cbrt(r405004);
double r405006 = r405002 / r405005;
double r405007 = log(r405006);
double r405008 = r405001 * r405007;
double r405009 = exp(r405008);
double r405010 = pow(r405006, r404999);
double r405011 = r405009 * r405010;
double r405012 = r405011 / r404999;
return r405012;
}




Bits error versus x




Bits error versus y
Results
| Original | 7.9 |
|---|---|
| Target | 7.7 |
| Herbie | 1.0 |
Initial program 7.9
Simplified7.9
rmApplied add-cube-cbrt21.3
Applied add-cube-cbrt7.9
Applied times-frac7.9
Applied unpow-prod-down2.2
rmApplied add-exp-log39.5
Applied add-exp-log39.5
Applied prod-exp39.6
Applied add-exp-log39.5
Applied add-exp-log35.6
Applied prod-exp31.5
Applied div-exp31.5
Applied pow-exp30.9
Simplified1.0
Final simplification1.0
herbie shell --seed 2020024 +o rules:numerics
(FPCore (x y)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, F"
:precision binary64
:herbie-target
(if (< y -3.7311844206647956e+94) (/ (exp (/ -1 y)) x) (if (< y 2.817959242728288e+37) (/ (pow (/ x (+ y x)) x) x) (if (< y 2.347387415166998e+178) (log (exp (/ (pow (/ x (+ y x)) x) x))) (/ (exp (/ -1 y)) x))))
(/ (exp (* x (log (/ x (+ x y))))) x))