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 r302655 = x;
double r302656 = y;
double r302657 = z;
double r302658 = r302657 + r302656;
double r302659 = r302656 / r302658;
double r302660 = log(r302659);
double r302661 = r302656 * r302660;
double r302662 = exp(r302661);
double r302663 = r302662 / r302656;
double r302664 = r302655 + r302663;
return r302664;
}
double f(double x, double y, double z) {
double r302665 = x;
double r302666 = 2.0;
double r302667 = y;
double r302668 = cbrt(r302667);
double r302669 = z;
double r302670 = r302669 + r302667;
double r302671 = cbrt(r302670);
double r302672 = r302668 / r302671;
double r302673 = log(r302672);
double r302674 = r302666 * r302673;
double r302675 = r302674 * r302667;
double r302676 = exp(r302675);
double r302677 = pow(r302672, r302667);
double r302678 = r302676 * r302677;
double r302679 = r302678 / r302667;
double r302680 = r302665 + r302679;
return r302680;
}




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
(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)))