\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 r438828 = x;
double r438829 = y;
double r438830 = r438828 + r438829;
double r438831 = r438828 / r438830;
double r438832 = log(r438831);
double r438833 = r438828 * r438832;
double r438834 = exp(r438833);
double r438835 = r438834 / r438828;
return r438835;
}
double f(double x, double y) {
double r438836 = x;
double r438837 = 2.0;
double r438838 = r438836 * r438837;
double r438839 = cbrt(r438836);
double r438840 = y;
double r438841 = r438836 + r438840;
double r438842 = cbrt(r438841);
double r438843 = r438839 / r438842;
double r438844 = log(r438843);
double r438845 = r438838 * r438844;
double r438846 = exp(r438845);
double r438847 = pow(r438843, r438836);
double r438848 = r438846 * r438847;
double r438849 = r438848 / r438836;
return r438849;
}




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