x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{e^{y \cdot \left(2 \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)\right)} \cdot {\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}{y}double f(double x, double y, double z) {
double r480756 = x;
double r480757 = y;
double r480758 = z;
double r480759 = r480758 + r480757;
double r480760 = r480757 / r480759;
double r480761 = log(r480760);
double r480762 = r480757 * r480761;
double r480763 = exp(r480762);
double r480764 = r480763 / r480757;
double r480765 = r480756 + r480764;
return r480765;
}
double f(double x, double y, double z) {
double r480766 = x;
double r480767 = y;
double r480768 = 2.0;
double r480769 = cbrt(r480767);
double r480770 = z;
double r480771 = r480770 + r480767;
double r480772 = cbrt(r480771);
double r480773 = r480769 / r480772;
double r480774 = log(r480773);
double r480775 = r480768 * r480774;
double r480776 = r480767 * r480775;
double r480777 = exp(r480776);
double r480778 = pow(r480773, r480767);
double r480779 = r480777 * r480778;
double r480780 = r480779 / r480767;
double r480781 = r480766 + r480780;
return r480781;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 5.8 |
|---|---|
| Target | 0.9 |
| Herbie | 0.9 |
Initial program 5.8
Simplified5.8
rmApplied add-cube-cbrt19.6
Applied add-cube-cbrt5.8
Applied times-frac5.8
Applied unpow-prod-down1.9
rmApplied add-exp-log39.5
Applied add-exp-log39.5
Applied prod-exp39.6
Applied add-exp-log39.5
Applied add-exp-log35.8
Applied prod-exp31.6
Applied div-exp31.6
Applied pow-exp31.1
Simplified0.9
Final simplification0.9
herbie shell --seed 2020047
(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)))