x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{{\left(e^{\sqrt[3]{y} \cdot \sqrt[3]{y}}\right)}^{\left(\sqrt[3]{y} \cdot \log \left(\frac{y}{z + y}\right)\right)}}{y}double f(double x, double y, double z) {
double r568609 = x;
double r568610 = y;
double r568611 = z;
double r568612 = r568611 + r568610;
double r568613 = r568610 / r568612;
double r568614 = log(r568613);
double r568615 = r568610 * r568614;
double r568616 = exp(r568615);
double r568617 = r568616 / r568610;
double r568618 = r568609 + r568617;
return r568618;
}
double f(double x, double y, double z) {
double r568619 = x;
double r568620 = y;
double r568621 = cbrt(r568620);
double r568622 = r568621 * r568621;
double r568623 = exp(r568622);
double r568624 = z;
double r568625 = r568624 + r568620;
double r568626 = r568620 / r568625;
double r568627 = log(r568626);
double r568628 = r568621 * r568627;
double r568629 = pow(r568623, r568628);
double r568630 = r568629 / r568620;
double r568631 = r568619 + r568630;
return r568631;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 5.8 |
|---|---|
| Target | 0.9 |
| Herbie | 0.9 |
Initial program 5.8
rmApplied add-log-exp34.8
Applied exp-to-pow0.9
rmApplied add-cube-cbrt0.9
Applied exp-prod0.9
Applied pow-pow0.9
Final simplification0.9
herbie shell --seed 2020047
(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.1154157597908e-315) (+ x (/ (exp (/ -1 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))