\frac{e^{x \cdot \log \left(\frac{x}{x + y}\right)}}{x}\begin{array}{l}
\mathbf{if}\;y \le 14322280.7592330035:\\
\;\;\;\;\frac{e^{x \cdot \left(2 \cdot \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)\right) + x \cdot \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)}}{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{e^{x \cdot \left(2 \cdot \left(\log \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) + \left(\log \left(\frac{\sqrt[3]{\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}}}{\sqrt[3]{\sqrt[3]{\sqrt[3]{x + y}}} \cdot \sqrt[3]{\sqrt[3]{\sqrt[3]{x + y}}}}\right) + \log \left(\frac{\sqrt[3]{\sqrt[3]{\sqrt[3]{x}}}}{\sqrt[3]{\sqrt[3]{\sqrt[3]{x + y}}}}\right)\right)\right)\right) + x \cdot \log \left(\frac{\sqrt[3]{x}}{\sqrt[3]{x + y}}\right)}}{x}\\
\end{array}double f(double x, double y) {
double r375925 = x;
double r375926 = y;
double r375927 = r375925 + r375926;
double r375928 = r375925 / r375927;
double r375929 = log(r375928);
double r375930 = r375925 * r375929;
double r375931 = exp(r375930);
double r375932 = r375931 / r375925;
return r375932;
}
double f(double x, double y) {
double r375933 = y;
double r375934 = 14322280.759233003;
bool r375935 = r375933 <= r375934;
double r375936 = x;
double r375937 = 2.0;
double r375938 = cbrt(r375936);
double r375939 = r375936 + r375933;
double r375940 = cbrt(r375939);
double r375941 = r375938 / r375940;
double r375942 = log(r375941);
double r375943 = r375937 * r375942;
double r375944 = r375936 * r375943;
double r375945 = r375936 * r375942;
double r375946 = r375944 + r375945;
double r375947 = exp(r375946);
double r375948 = r375947 / r375936;
double r375949 = cbrt(r375938);
double r375950 = r375949 * r375949;
double r375951 = r375940 * r375940;
double r375952 = cbrt(r375951);
double r375953 = r375950 / r375952;
double r375954 = log(r375953);
double r375955 = cbrt(r375950);
double r375956 = cbrt(r375940);
double r375957 = cbrt(r375956);
double r375958 = r375957 * r375957;
double r375959 = r375955 / r375958;
double r375960 = log(r375959);
double r375961 = cbrt(r375949);
double r375962 = r375961 / r375957;
double r375963 = log(r375962);
double r375964 = r375960 + r375963;
double r375965 = r375954 + r375964;
double r375966 = r375937 * r375965;
double r375967 = r375936 * r375966;
double r375968 = r375967 + r375945;
double r375969 = exp(r375968);
double r375970 = r375969 / r375936;
double r375971 = r375935 ? r375948 : r375970;
return r375971;
}




Bits error versus x




Bits error versus y
Results
| Original | 11.0 |
|---|---|
| Target | 8.0 |
| Herbie | 3.4 |
if y < 14322280.759233003Initial program 4.7
rmApplied add-cube-cbrt29.0
Applied add-cube-cbrt4.7
Applied times-frac4.7
Applied log-prod1.9
Applied distribute-lft-in1.9
Simplified1.2
if 14322280.759233003 < y Initial program 32.0
rmApplied add-cube-cbrt24.1
Applied add-cube-cbrt32.0
Applied times-frac32.0
Applied log-prod22.6
Applied distribute-lft-in22.6
Simplified20.5
rmApplied add-cube-cbrt17.7
Applied cbrt-prod15.0
rmApplied add-cube-cbrt13.5
Applied times-frac13.1
Applied log-prod13.1
rmApplied add-cube-cbrt10.6
Applied add-cube-cbrt11.1
Applied cbrt-prod11.1
Applied times-frac10.8
Applied log-prod10.8
Final simplification3.4
herbie shell --seed 2020089 +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))