x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{e^{\left(2 \cdot y\right) \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)} \cdot {\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}{y}double f(double x, double y, double z) {
double r439779 = x;
double r439780 = y;
double r439781 = z;
double r439782 = r439781 + r439780;
double r439783 = r439780 / r439782;
double r439784 = log(r439783);
double r439785 = r439780 * r439784;
double r439786 = exp(r439785);
double r439787 = r439786 / r439780;
double r439788 = r439779 + r439787;
return r439788;
}
double f(double x, double y, double z) {
double r439789 = x;
double r439790 = 2.0;
double r439791 = y;
double r439792 = r439790 * r439791;
double r439793 = cbrt(r439791);
double r439794 = z;
double r439795 = r439794 + r439791;
double r439796 = cbrt(r439795);
double r439797 = r439793 / r439796;
double r439798 = log(r439797);
double r439799 = r439792 * r439798;
double r439800 = exp(r439799);
double r439801 = pow(r439797, r439791);
double r439802 = r439800 * r439801;
double r439803 = r439802 / r439791;
double r439804 = r439789 + r439803;
return r439804;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 5.8 |
|---|---|
| Target | 1.0 |
| Herbie | 1.0 |
Initial program 5.8
Simplified5.8
rmApplied add-cube-cbrt19.3
Applied add-cube-cbrt5.8
Applied times-frac5.8
Applied unpow-prod-down2.0
rmApplied add-exp-log40.2
Applied add-exp-log40.2
Applied prod-exp40.3
Applied add-exp-log40.2
Applied add-exp-log36.1
Applied prod-exp32.0
Applied div-exp32.0
Applied pow-exp31.5
Simplified1.0
Final simplification1.0
herbie shell --seed 2019350
(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)))