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 r331705 = x;
double r331706 = y;
double r331707 = z;
double r331708 = r331707 + r331706;
double r331709 = r331706 / r331708;
double r331710 = log(r331709);
double r331711 = r331706 * r331710;
double r331712 = exp(r331711);
double r331713 = r331712 / r331706;
double r331714 = r331705 + r331713;
return r331714;
}
double f(double x, double y, double z) {
double r331715 = x;
double r331716 = y;
double r331717 = cbrt(r331716);
double r331718 = z;
double r331719 = r331718 + r331716;
double r331720 = cbrt(r331719);
double r331721 = r331717 / r331720;
double r331722 = pow(r331721, r331716);
double r331723 = r331722 * r331722;
double r331724 = r331722 / r331716;
double r331725 = r331723 * r331724;
double r331726 = r331715 + r331725;
return r331726;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.0 |
|---|---|
| Target | 1.0 |
| Herbie | 1.0 |
Initial program 6.0
Simplified6.0
rmApplied *-un-lft-identity6.0
Applied add-cube-cbrt19.7
Applied add-cube-cbrt6.0
Applied times-frac6.0
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 2020046 +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)))