x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}\frac{e^{\left(2 \cdot y\right) \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{y + z}}\right)} \cdot {\left(\frac{\sqrt[3]{y}}{\sqrt[3]{y + z}}\right)}^{y}}{y} + xdouble f(double x, double y, double z) {
double r311680 = x;
double r311681 = y;
double r311682 = z;
double r311683 = r311682 + r311681;
double r311684 = r311681 / r311683;
double r311685 = log(r311684);
double r311686 = r311681 * r311685;
double r311687 = exp(r311686);
double r311688 = r311687 / r311681;
double r311689 = r311680 + r311688;
return r311689;
}
double f(double x, double y, double z) {
double r311690 = 2.0;
double r311691 = y;
double r311692 = r311690 * r311691;
double r311693 = cbrt(r311691);
double r311694 = z;
double r311695 = r311691 + r311694;
double r311696 = cbrt(r311695);
double r311697 = r311693 / r311696;
double r311698 = log(r311697);
double r311699 = r311692 * r311698;
double r311700 = exp(r311699);
double r311701 = pow(r311697, r311691);
double r311702 = r311700 * r311701;
double r311703 = r311702 / r311691;
double r311704 = x;
double r311705 = r311703 + r311704;
return r311705;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 5.9 |
|---|---|
| Target | 1.1 |
| Herbie | 1.2 |
Initial program 5.9
Simplified5.9
rmApplied add-cube-cbrt19.1
Applied add-cube-cbrt5.9
Applied times-frac5.9
Applied unpow-prod-down2.3
Simplified2.3
rmApplied add-exp-log39.4
Applied add-exp-log31.2
Applied div-exp31.2
Applied add-exp-log39.4
Applied add-exp-log31.2
Applied div-exp31.2
Applied prod-exp31.2
Applied pow-exp30.7
Simplified1.2
Final simplification1.2
herbie shell --seed 2019194
(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.0 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))