x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{e^{\left(2 \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)\right) \cdot y} \cdot {\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}{y}double f(double x, double y, double z) {
double r227244 = x;
double r227245 = y;
double r227246 = z;
double r227247 = r227246 + r227245;
double r227248 = r227245 / r227247;
double r227249 = log(r227248);
double r227250 = r227245 * r227249;
double r227251 = exp(r227250);
double r227252 = r227251 / r227245;
double r227253 = r227244 + r227252;
return r227253;
}
double f(double x, double y, double z) {
double r227254 = x;
double r227255 = 2.0;
double r227256 = y;
double r227257 = cbrt(r227256);
double r227258 = z;
double r227259 = r227258 + r227256;
double r227260 = cbrt(r227259);
double r227261 = r227257 / r227260;
double r227262 = log(r227261);
double r227263 = r227255 * r227262;
double r227264 = r227263 * r227256;
double r227265 = exp(r227264);
double r227266 = pow(r227261, r227256);
double r227267 = r227265 * r227266;
double r227268 = r227267 / r227256;
double r227269 = r227254 + r227268;
return r227269;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.1 |
|---|---|
| Target | 0.9 |
| Herbie | 0.9 |
Initial program 6.1
Simplified6.1
rmApplied add-cube-cbrt19.4
Applied add-cube-cbrt6.1
Applied times-frac6.1
Applied unpow-prod-down2.0
rmApplied add-exp-log39.6
Applied add-exp-log39.6
Applied prod-exp39.7
Applied add-exp-log39.6
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 2019208 +o rules:numerics
(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.1154157598e-315) (+ x (/ (exp (/ -1 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))