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




Bits error versus x




Bits error versus y
Results
| Original | 11.0 |
|---|---|
| Target | 8.4 |
| Herbie | 5.1 |
if y < 278.2471189653204Initial program 4.5
Simplified4.5
rmApplied add-cube-cbrt28.8
Applied add-cube-cbrt4.5
Applied times-frac4.5
Applied unpow-prod-down1.7
if 278.2471189653204 < y Initial program 31.7
Simplified31.6
rmApplied add-cube-cbrt23.8
Applied add-cube-cbrt31.7
Applied times-frac31.7
Applied unpow-prod-down22.7
rmApplied add-cube-cbrt19.5
Applied cbrt-prod16.7
Applied add-cube-cbrt16.4
Applied times-frac16.1
Applied unpow-prod-down16.1
Final simplification5.1
herbie shell --seed 2020162
(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))