x + \frac{e^{y \cdot \log \left(\frac{y}{z + y}\right)}}{y}x + \frac{e^{y \cdot \left(2 \cdot \log \left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)\right)} \cdot {\left(\frac{\sqrt[3]{y}}{\sqrt[3]{z + y}}\right)}^{y}}{y}double f(double x, double y, double z) {
double r394504 = x;
double r394505 = y;
double r394506 = z;
double r394507 = r394506 + r394505;
double r394508 = r394505 / r394507;
double r394509 = log(r394508);
double r394510 = r394505 * r394509;
double r394511 = exp(r394510);
double r394512 = r394511 / r394505;
double r394513 = r394504 + r394512;
return r394513;
}
double f(double x, double y, double z) {
double r394514 = x;
double r394515 = y;
double r394516 = 2.0;
double r394517 = cbrt(r394515);
double r394518 = z;
double r394519 = r394518 + r394515;
double r394520 = cbrt(r394519);
double r394521 = r394517 / r394520;
double r394522 = log(r394521);
double r394523 = r394516 * r394522;
double r394524 = r394515 * r394523;
double r394525 = exp(r394524);
double r394526 = pow(r394521, r394515);
double r394527 = r394525 * r394526;
double r394528 = r394527 / r394515;
double r394529 = r394514 + r394528;
return r394529;
}




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.2
Applied add-cube-cbrt6.1
Applied times-frac6.1
Applied unpow-prod-down2.1
rmApplied add-exp-log39.5
Applied add-exp-log39.5
Applied prod-exp39.6
Applied add-exp-log39.5
Applied add-exp-log35.5
Applied prod-exp31.5
Applied div-exp31.5
Applied pow-exp30.9
Simplified1.0
Final simplification1.0
herbie shell --seed 2020045 +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)))