\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\begin{array}{l}
\mathbf{if}\;y \le 3608328.164803992 \lor \neg \left(y \le 1.0393444200088786 \cdot 10^{111}\right):\\
\;\;\;\;\frac{\left({\left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)}^{x} \cdot {\left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)}^{x}\right) \cdot {\left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)}^{x}}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{\frac{x}{\sqrt[3]{x + y} \cdot \sqrt[3]{x + y}}}{\sqrt[3]{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 (((y <= 3608328.164803992) || !(y <= 1.0393444200088786e+111))) {
VAR = ((double) (((double) (((double) (((double) pow(((double) (((double) cbrt(x)) / ((double) cbrt(((double) (x + y)))))), x)) * ((double) pow(((double) (((double) cbrt(x)) / ((double) cbrt(((double) (x + y)))))), x)))) * ((double) pow(((double) (((double) cbrt(x)) / ((double) cbrt(((double) (x + y)))))), x)))) / x));
} else {
VAR = ((double) (((double) pow(((double) (((double) (x / ((double) (((double) cbrt(((double) (x + y)))) * ((double) cbrt(((double) (x + y)))))))) / ((double) cbrt(((double) (x + y)))))), x)) / x));
}
return VAR;
}




Bits error versus x




Bits error versus y
Results
| Original | 11.3 |
|---|---|
| Target | 7.7 |
| Herbie | 5.1 |
if y < 3608328.164803992 or 1.0393444200088786e111 < y Initial program 8.5
Simplified8.5
rmApplied add-cube-cbrt28.2
Applied add-cube-cbrt8.6
Applied times-frac8.6
Applied unpow-prod-down4.3
rmApplied times-frac4.3
Applied unpow-prod-down3.1
if 3608328.164803992 < y < 1.0393444200088786e111Initial program 38.2
Simplified38.2
rmApplied add-cube-cbrt24.2
Applied associate-/r*24.6
Final simplification5.1
herbie shell --seed 2020177
(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.0 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.0 y)) x))))
(/ (exp (* x (log (/ x (+ x y))))) x))