\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\begin{array}{l}
\mathbf{if}\;x \le -7.006483848542437442574737360700964927673 \lor \neg \left(x \le 2.852199015031174304536241058074557641432 \cdot 10^{-14}\right):\\
\;\;\;\;\frac{e^{-1 \cdot y}}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{{\left(\frac{1}{\sqrt[3]{x + y} \cdot \sqrt[3]{x + y}}\right)}^{x} \cdot {\left(\frac{x}{\sqrt[3]{x + y}}\right)}^{x}}{x}\\
\end{array}double f(double x, double y) {
double r447556 = x;
double r447557 = y;
double r447558 = r447556 + r447557;
double r447559 = r447556 / r447558;
double r447560 = log(r447559);
double r447561 = r447556 * r447560;
double r447562 = exp(r447561);
double r447563 = r447562 / r447556;
return r447563;
}
double f(double x, double y) {
double r447564 = x;
double r447565 = -7.006483848542437;
bool r447566 = r447564 <= r447565;
double r447567 = 2.852199015031174e-14;
bool r447568 = r447564 <= r447567;
double r447569 = !r447568;
bool r447570 = r447566 || r447569;
double r447571 = -1.0;
double r447572 = y;
double r447573 = r447571 * r447572;
double r447574 = exp(r447573);
double r447575 = r447574 / r447564;
double r447576 = 1.0;
double r447577 = r447564 + r447572;
double r447578 = cbrt(r447577);
double r447579 = r447578 * r447578;
double r447580 = r447576 / r447579;
double r447581 = pow(r447580, r447564);
double r447582 = r447564 / r447578;
double r447583 = pow(r447582, r447564);
double r447584 = r447581 * r447583;
double r447585 = r447584 / r447564;
double r447586 = r447570 ? r447575 : r447585;
return r447586;
}




Bits error versus x




Bits error versus y
Results
| Original | 11.0 |
|---|---|
| Target | 8.2 |
| Herbie | 1.9 |
if x < -7.006483848542437 or 2.852199015031174e-14 < x Initial program 10.3
Simplified10.3
Taylor expanded around inf 0.5
Simplified0.5
if -7.006483848542437 < x < 2.852199015031174e-14Initial program 11.8
Simplified11.8
rmApplied add-cube-cbrt11.8
Applied *-un-lft-identity11.8
Applied times-frac11.8
Applied unpow-prod-down3.5
Final simplification1.9
herbie shell --seed 2019353
(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))