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 r468496 = x;
double r468497 = y;
double r468498 = z;
double r468499 = r468498 + r468497;
double r468500 = r468497 / r468499;
double r468501 = log(r468500);
double r468502 = r468497 * r468501;
double r468503 = exp(r468502);
double r468504 = r468503 / r468497;
double r468505 = r468496 + r468504;
return r468505;
}
double f(double x, double y, double z) {
double r468506 = x;
double r468507 = 2.0;
double r468508 = y;
double r468509 = cbrt(r468508);
double r468510 = z;
double r468511 = r468510 + r468508;
double r468512 = cbrt(r468511);
double r468513 = r468509 / r468512;
double r468514 = log(r468513);
double r468515 = r468507 * r468514;
double r468516 = r468515 * r468508;
double r468517 = exp(r468516);
double r468518 = pow(r468513, r468508);
double r468519 = r468508 / r468518;
double r468520 = r468517 / r468519;
double r468521 = r468506 + r468520;
return r468521;
}




Bits error versus x




Bits error versus y




Bits error versus z
Results
| Original | 6.1 |
|---|---|
| Target | 1.0 |
| Herbie | 1.0 |
Initial program 6.1
Simplified6.1
rmApplied add-cube-cbrt19.1
Applied add-cube-cbrt6.2
Applied times-frac6.2
Applied unpow-prod-down2.1
Applied associate-/l*2.1
rmApplied add-exp-log39.4
Applied add-exp-log39.4
Applied prod-exp39.5
Applied add-exp-log39.4
Applied add-exp-log35.3
Applied prod-exp31.2
Applied div-exp31.2
Applied pow-exp30.6
Simplified1.0
Final simplification1.0
herbie shell --seed 2020042 +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.1154157597908e-315) (+ x (/ (exp (/ -1 z)) y)) (+ x (/ (exp (log (pow (/ y (+ y z)) y))) y)))
(+ x (/ (exp (* y (log (/ y (+ z y))))) y)))