x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + e^{\left(2 \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)\right) \cdot y} \cdot \frac{{\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}{y}double f(double x, double y, double z) {
double r328444 = x;
double r328445 = y;
double r328446 = z;
double r328447 = r328446 + r328445;
double r328448 = r328445 / r328447;
double r328449 = log(r328448);
double r328450 = r328445 * r328449;
double r328451 = exp(r328450);
double r328452 = r328451 / r328445;
double r328453 = r328444 + r328452;
return r328453;
}
double f(double x, double y, double z) {
double r328454 = x;
double r328455 = 2.0;
double r328456 = y;
double r328457 = cbrt(r328456);
double r328458 = z;
double r328459 = r328458 + r328456;
double r328460 = cbrt(r328459);
double r328461 = r328457 / r328460;
double r328462 = log(r328461);
double r328463 = r328455 * r328462;
double r328464 = r328463 * r328456;
double r328465 = exp(r328464);
double r328466 = pow(r328461, r328456);
double r328467 = r328466 / r328456;
double r328468 = r328465 * r328467;
double r328469 = r328454 + r328468;
return r328469;
}




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 +o rules:numerics
(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)))