x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \left({\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y} \cdot {\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}\right) \cdot \frac{{\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}{y}double f(double x, double y, double z) {
double r538766 = x;
double r538767 = y;
double r538768 = z;
double r538769 = r538768 + r538767;
double r538770 = r538767 / r538769;
double r538771 = log(r538770);
double r538772 = r538767 * r538771;
double r538773 = exp(r538772);
double r538774 = r538773 / r538767;
double r538775 = r538766 + r538774;
return r538775;
}
double f(double x, double y, double z) {
double r538776 = x;
double r538777 = y;
double r538778 = cbrt(r538777);
double r538779 = z;
double r538780 = r538779 + r538777;
double r538781 = cbrt(r538780);
double r538782 = r538778 / r538781;
double r538783 = pow(r538782, r538777);
double r538784 = r538783 * r538783;
double r538785 = r538783 / r538777;
double r538786 = r538784 * r538785;
double r538787 = r538776 + r538786;
return r538787;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.1 |
|---|---|
| Target | 1.0 |
| Herbie | 1.0 |
Initial program 6.1
Simplified6.1
rmApplied *-un-lft-identity6.1
Applied add-cube-cbrt19.1
Applied add-cube-cbrt6.2
Applied times-frac6.2
Applied unpow-prod-down2.1
Applied times-frac2.1
Simplified2.1
rmApplied times-frac2.1
Applied unpow-prod-down1.0
Final simplification1.0
herbie shell --seed 2020042 +o rules:numerics
(FPCore (x y z)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, G"
:precision binary64
:herbie-target
(if (< (/ y (+ z y)) 7.1154157597908e-315) (+ x (/ (exp (/ -1 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))