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 r315316 = x;
double r315317 = y;
double r315318 = z;
double r315319 = r315318 + r315317;
double r315320 = r315317 / r315319;
double r315321 = log(r315320);
double r315322 = r315317 * r315321;
double r315323 = exp(r315322);
double r315324 = r315323 / r315317;
double r315325 = r315316 + r315324;
return r315325;
}
double f(double x, double y, double z) {
double r315326 = x;
double r315327 = y;
double r315328 = 2.0;
double r315329 = cbrt(r315327);
double r315330 = z;
double r315331 = r315330 + r315327;
double r315332 = cbrt(r315331);
double r315333 = r315329 / r315332;
double r315334 = log(r315333);
double r315335 = r315328 * r315334;
double r315336 = r315327 * r315335;
double r315337 = exp(r315336);
double r315338 = pow(r315333, r315327);
double r315339 = r315337 * r315338;
double r315340 = r315339 / r315327;
double r315341 = r315326 + r315340;
return r315341;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.3 |
|---|---|
| Target | 0.9 |
| Herbie | 0.9 |
Initial program 6.3
Simplified6.3
rmApplied add-cube-cbrt19.6
Applied add-cube-cbrt6.3
Applied times-frac6.3
Applied unpow-prod-down2.2
rmApplied add-exp-log40.2
Applied add-exp-log40.2
Applied prod-exp40.3
Applied add-exp-log40.2
Applied add-exp-log36.3
Applied prod-exp32.1
Applied div-exp32.1
Applied pow-exp31.4
Simplified0.9
Final simplification0.9
herbie shell --seed 2019305
(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)))