x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + e^{y \cdot \left(2 \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)\right)} \cdot \frac{{\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}{y}double f(double x, double y, double z) {
double r264082 = x;
double r264083 = y;
double r264084 = z;
double r264085 = r264084 + r264083;
double r264086 = r264083 / r264085;
double r264087 = log(r264086);
double r264088 = r264083 * r264087;
double r264089 = exp(r264088);
double r264090 = r264089 / r264083;
double r264091 = r264082 + r264090;
return r264091;
}
double f(double x, double y, double z) {
double r264092 = x;
double r264093 = y;
double r264094 = 2.0;
double r264095 = cbrt(r264093);
double r264096 = z;
double r264097 = r264096 + r264093;
double r264098 = cbrt(r264097);
double r264099 = r264095 / r264098;
double r264100 = log(r264099);
double r264101 = r264094 * r264100;
double r264102 = r264093 * r264101;
double r264103 = exp(r264102);
double r264104 = pow(r264099, r264093);
double r264105 = r264104 / r264093;
double r264106 = r264103 * r264105;
double r264107 = r264092 + r264106;
return r264107;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.2 |
|---|---|
| Target | 1.1 |
| Herbie | 1.1 |
Initial program 6.2
Simplified6.2
rmApplied *-un-lft-identity6.2
Applied add-cube-cbrt19.6
Applied add-cube-cbrt6.2
Applied times-frac6.2
Applied unpow-prod-down2.0
Applied times-frac2.0
Simplified2.0
rmApplied add-exp-log39.5
Applied add-exp-log39.5
Applied prod-exp39.6
Applied add-exp-log39.6
Applied add-exp-log35.5
Applied prod-exp31.7
Applied div-exp31.7
Applied pow-exp31.2
Simplified1.1
Final simplification1.1
herbie shell --seed 2019199
(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)))