\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\begin{array}{l}
\mathbf{if}\;x \le -15.5218136111124299 \lor \neg \left(x \le 2.533222095666427 \cdot 10^{-13}\right):\\
\;\;\;\;\frac{1}{x \cdot e^{y}}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{x} \cdot \sqrt[3]{x}}{1}\right)}^{x} \cdot {\left(\frac{\sqrt[3]{x}}{x + y}\right)}^{x}}{x}\\
\end{array}double code(double x, double y) {
return ((double) (((double) exp(((double) (x * ((double) log(((double) (x / ((double) (x + y)))))))))) / x));
}
double code(double x, double y) {
double VAR;
if (((x <= -15.52181361111243) || !(x <= 2.533222095666427e-13))) {
VAR = ((double) (1.0 / ((double) (x * ((double) exp(y))))));
} else {
VAR = ((double) (((double) (((double) pow(((double) (((double) (((double) cbrt(x)) * ((double) cbrt(x)))) / 1.0)), x)) * ((double) pow(((double) (((double) cbrt(x)) / ((double) (x + y)))), x)))) / x));
}
return VAR;
}




Bits error versus x




Bits error versus y
Results
| Original | 11.3 |
|---|---|
| Target | 7.8 |
| Herbie | 1.6 |
if x < -15.52181361111243 or 2.533222095666427e-13 < x Initial program 11.3
Simplified11.3
Taylor expanded around inf 0.5
Simplified0.5
rmApplied clear-num0.5
Simplified0.5
if -15.52181361111243 < x < 2.533222095666427e-13Initial program 11.3
Simplified11.3
rmApplied *-un-lft-identity11.3
Applied add-cube-cbrt11.3
Applied times-frac11.3
Applied unpow-prod-down3.0
Final simplification1.6
herbie shell --seed 2020122
(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))