\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\begin{array}{l}
\mathbf{if}\;y \le 4.1136023726528613 \cdot 10^{-4} \lor \neg \left(y \le 2.8316162764436968 \cdot 10^{120}\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 <= 0.00041136023726528613) || !(y <= 2.831616276443697e+120))) {
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.9 |
| Herbie | 4.7 |
if y < 4.1136023726528613e-4 or 2.8316162764436968e120 < y Initial program 8.3
Simplified8.3
rmApplied add-cube-cbrt28.5
Applied add-cube-cbrt8.3
Applied times-frac8.3
Applied unpow-prod-down3.7
rmApplied times-frac3.7
Applied unpow-prod-down2.6
if 4.1136023726528613e-4 < y < 2.8316162764436968e120Initial program 36.3
Simplified36.2
rmApplied add-cube-cbrt23.0
Applied associate-/r*23.1
Final simplification4.7
herbie shell --seed 2020161
(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))