\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\begin{array}{l}
\mathbf{if}\;x \le -15.65790492026070523934322409331798553467 \lor \neg \left(x \le 0.1204014281115151213663594376157561782748\right):\\
\;\;\;\;\frac{e^{-y}}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{1}{\sqrt[3]{x + y} \cdot \sqrt[3]{x + y}}\right)}^{x} \cdot \left({\left(\frac{\sqrt[3]{x} \cdot \sqrt[3]{x}}{\sqrt[3]{\sqrt[3]{x + y} \cdot \sqrt[3]{x + y}}}\right)}^{x} \cdot {\left(\frac{\sqrt[3]{x}}{\sqrt[3]{\sqrt[3]{x + y}}}\right)}^{x}\right)}{x}\\
\end{array}double f(double x, double y) {
double r237987 = x;
double r237988 = y;
double r237989 = r237987 + r237988;
double r237990 = r237987 / r237989;
double r237991 = log(r237990);
double r237992 = r237987 * r237991;
double r237993 = exp(r237992);
double r237994 = r237993 / r237987;
return r237994;
}
double f(double x, double y) {
double r237995 = x;
double r237996 = -15.657904920260705;
bool r237997 = r237995 <= r237996;
double r237998 = 0.12040142811151512;
bool r237999 = r237995 <= r237998;
double r238000 = !r237999;
bool r238001 = r237997 || r238000;
double r238002 = y;
double r238003 = -r238002;
double r238004 = exp(r238003);
double r238005 = r238004 / r237995;
double r238006 = 1.0;
double r238007 = r237995 + r238002;
double r238008 = cbrt(r238007);
double r238009 = r238008 * r238008;
double r238010 = r238006 / r238009;
double r238011 = pow(r238010, r237995);
double r238012 = cbrt(r237995);
double r238013 = r238012 * r238012;
double r238014 = cbrt(r238009);
double r238015 = r238013 / r238014;
double r238016 = pow(r238015, r237995);
double r238017 = cbrt(r238008);
double r238018 = r238012 / r238017;
double r238019 = pow(r238018, r237995);
double r238020 = r238016 * r238019;
double r238021 = r238011 * r238020;
double r238022 = r238021 / r237995;
double r238023 = r238001 ? r238005 : r238022;
return r238023;
}




Bits error versus x




Bits error versus y
Results
| Original | 11.2 |
|---|---|
| Target | 8.2 |
| Herbie | 0.0 |
if x < -15.657904920260705 or 0.12040142811151512 < x Initial program 10.9
Simplified10.9
Taylor expanded around inf 0.1
if -15.657904920260705 < x < 0.12040142811151512Initial program 11.6
Simplified11.6
rmApplied add-cube-cbrt11.6
Applied *-un-lft-identity11.6
Applied times-frac11.6
Applied unpow-prod-down3.3
rmApplied add-cube-cbrt3.3
Applied cbrt-prod3.3
Applied add-cube-cbrt3.3
Applied times-frac3.3
Applied unpow-prod-down0.0
Final simplification0.0
herbie shell --seed 2019323 +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))