x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}\frac{e^{y \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{y + z}}\right)} \cdot e^{\left(\log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{y + z}}\right) + \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{y + z}}\right)\right) \cdot y}}{y} + xdouble f(double x, double y, double z) {
double r18853806 = x;
double r18853807 = y;
double r18853808 = z;
double r18853809 = r18853808 + r18853807;
double r18853810 = r18853807 / r18853809;
double r18853811 = log(r18853810);
double r18853812 = r18853807 * r18853811;
double r18853813 = exp(r18853812);
double r18853814 = r18853813 / r18853807;
double r18853815 = r18853806 + r18853814;
return r18853815;
}
double f(double x, double y, double z) {
double r18853816 = y;
double r18853817 = cbrt(r18853816);
double r18853818 = z;
double r18853819 = r18853816 + r18853818;
double r18853820 = cbrt(r18853819);
double r18853821 = r18853817 / r18853820;
double r18853822 = log(r18853821);
double r18853823 = r18853816 * r18853822;
double r18853824 = exp(r18853823);
double r18853825 = r18853822 + r18853822;
double r18853826 = r18853825 * r18853816;
double r18853827 = exp(r18853826);
double r18853828 = r18853824 * r18853827;
double r18853829 = r18853828 / r18853816;
double r18853830 = x;
double r18853831 = r18853829 + r18853830;
return r18853831;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 5.9 |
|---|---|
| Target | 1.0 |
| Herbie | 1.0 |
Initial program 5.9
rmApplied add-cube-cbrt18.9
Applied add-cube-cbrt5.9
Applied times-frac5.9
Applied log-prod1.9
Applied distribute-rgt-in1.9
Applied exp-sum1.9
Simplified1.0
Final simplification1.0
herbie shell --seed 2019164
(FPCore (x y z)
:name "Numeric.SpecFunctions:invIncompleteBetaWorker from math-functions-0.1.5.2, G"
: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)))