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}}{\frac{y}{{\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}}double f(double x, double y, double z) {
double r479970 = x;
double r479971 = y;
double r479972 = z;
double r479973 = r479972 + r479971;
double r479974 = r479971 / r479973;
double r479975 = log(r479974);
double r479976 = r479971 * r479975;
double r479977 = exp(r479976);
double r479978 = r479977 / r479971;
double r479979 = r479970 + r479978;
return r479979;
}
double f(double x, double y, double z) {
double r479980 = x;
double r479981 = 2.0;
double r479982 = y;
double r479983 = cbrt(r479982);
double r479984 = z;
double r479985 = r479984 + r479982;
double r479986 = cbrt(r479985);
double r479987 = r479983 / r479986;
double r479988 = log(r479987);
double r479989 = r479981 * r479988;
double r479990 = r479989 * r479982;
double r479991 = exp(r479990);
double r479992 = pow(r479987, r479982);
double r479993 = r479982 / r479992;
double r479994 = r479991 / r479993;
double r479995 = r479980 + r479994;
return r479995;
}




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
Simplified5.8
rmApplied add-cube-cbrt19.6
Applied add-cube-cbrt5.8
Applied times-frac5.8
Applied unpow-prod-down1.9
Applied associate-/l*1.9
rmApplied add-exp-log39.5
Applied add-exp-log39.5
Applied prod-exp39.6
Applied add-exp-log39.5
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 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)))