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 r442779 = x;
double r442780 = y;
double r442781 = z;
double r442782 = r442781 + r442780;
double r442783 = r442780 / r442782;
double r442784 = log(r442783);
double r442785 = r442780 * r442784;
double r442786 = exp(r442785);
double r442787 = r442786 / r442780;
double r442788 = r442779 + r442787;
return r442788;
}
double f(double x, double y, double z) {
double r442789 = x;
double r442790 = y;
double r442791 = 2.0;
double r442792 = cbrt(r442790);
double r442793 = z;
double r442794 = r442793 + r442790;
double r442795 = cbrt(r442794);
double r442796 = r442792 / r442795;
double r442797 = log(r442796);
double r442798 = r442791 * r442797;
double r442799 = r442790 * r442798;
double r442800 = exp(r442799);
double r442801 = pow(r442796, r442790);
double r442802 = r442800 * r442801;
double r442803 = r442802 / r442790;
double r442804 = r442789 + r442803;
return r442804;
}




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 add-cube-cbrt19.2
Applied add-cube-cbrt6.1
Applied times-frac6.1
Applied unpow-prod-down2.1
rmApplied add-exp-log39.5
Applied add-exp-log39.5
Applied prod-exp39.6
Applied add-exp-log39.5
Applied add-exp-log35.5
Applied prod-exp31.5
Applied div-exp31.5
Applied pow-exp30.9
Simplified1.0
Final simplification1.0
herbie shell --seed 2020045
(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)))