\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\begin{array}{l}
\mathbf{if}\;x \le -34762.528692470238:\\
\;\;\;\;\frac{1}{x \cdot e^{y}}\\
\mathbf{elif}\;x \le 25.356729299496507:\\
\;\;\;\;\frac{{\left(\frac{\sqrt[3]{x} \cdot \sqrt[3]{x}}{\sqrt[3]{x + y} \cdot \sqrt[3]{x + y}}\right)}^{x}}{\frac{x}{{\left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)}^{x}}}\\
\mathbf{else}:\\
\;\;\;\;\frac{e^{-1 \cdot y}}{x}\\
\end{array}double f(double x, double y) {
double r401621 = x;
double r401622 = y;
double r401623 = r401621 + r401622;
double r401624 = r401621 / r401623;
double r401625 = log(r401624);
double r401626 = r401621 * r401625;
double r401627 = exp(r401626);
double r401628 = r401627 / r401621;
return r401628;
}
double f(double x, double y) {
double r401629 = x;
double r401630 = -34762.52869247024;
bool r401631 = r401629 <= r401630;
double r401632 = 1.0;
double r401633 = y;
double r401634 = exp(r401633);
double r401635 = r401629 * r401634;
double r401636 = r401632 / r401635;
double r401637 = 25.356729299496507;
bool r401638 = r401629 <= r401637;
double r401639 = cbrt(r401629);
double r401640 = r401639 * r401639;
double r401641 = r401629 + r401633;
double r401642 = cbrt(r401641);
double r401643 = r401642 * r401642;
double r401644 = r401640 / r401643;
double r401645 = pow(r401644, r401629);
double r401646 = r401639 / r401642;
double r401647 = pow(r401646, r401629);
double r401648 = r401629 / r401647;
double r401649 = r401645 / r401648;
double r401650 = -1.0;
double r401651 = r401650 * r401633;
double r401652 = exp(r401651);
double r401653 = r401652 / r401629;
double r401654 = r401638 ? r401649 : r401653;
double r401655 = r401631 ? r401636 : r401654;
return r401655;
}




Bits error versus x




Bits error versus y
Results
| Original | 11.3 |
|---|---|
| Target | 8.2 |
| Herbie | 1.0 |
if x < -34762.52869247024Initial program 12.2
Simplified12.2
Taylor expanded around inf 0.1
Simplified0.1
rmApplied clear-num0.1
Simplified0.1
if -34762.52869247024 < x < 25.356729299496507Initial program 11.4
Simplified11.4
rmApplied add-cube-cbrt11.5
Applied add-cube-cbrt11.4
Applied times-frac11.4
Applied unpow-prod-down2.0
Applied associate-/l*2.0
if 25.356729299496507 < x Initial program 10.4
Simplified10.4
Taylor expanded around inf 0.1
Simplified0.1
Final simplification1.0
herbie shell --seed 2020064 +o rules:numerics
(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))