x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + {\left(e^{y}\right)}^{\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 r242622 = x;
double r242623 = y;
double r242624 = z;
double r242625 = r242624 + r242623;
double r242626 = r242623 / r242625;
double r242627 = log(r242626);
double r242628 = r242623 * r242627;
double r242629 = exp(r242628);
double r242630 = r242629 / r242623;
double r242631 = r242622 + r242630;
return r242631;
}
double f(double x, double y, double z) {
double r242632 = x;
double r242633 = y;
double r242634 = exp(r242633);
double r242635 = 2.0;
double r242636 = cbrt(r242633);
double r242637 = z;
double r242638 = r242637 + r242633;
double r242639 = cbrt(r242638);
double r242640 = r242636 / r242639;
double r242641 = log(r242640);
double r242642 = r242635 * r242641;
double r242643 = pow(r242634, r242642);
double r242644 = pow(r242640, r242633);
double r242645 = r242644 / r242633;
double r242646 = r242643 * r242645;
double r242647 = r242632 + r242646;
return r242647;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 5.9 |
|---|---|
| Target | 1.0 |
| Herbie | 1.0 |
Initial program 5.9
rmApplied *-un-lft-identity5.9
Applied add-cube-cbrt19.1
Applied add-cube-cbrt5.9
Applied times-frac5.9
Applied log-prod2.0
Applied distribute-lft-in2.0
Applied exp-sum2.0
Applied times-frac2.0
Simplified1.0
Simplified1.0
Final simplification1.0
herbie shell --seed 2019306 +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)))