\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(\left(e^{b} \cdot e^{c}\right) \cdot e^{a}\right) \cdot \left(\left(\left(\sqrt[3]{e^{d}} \cdot \sqrt[3]{e^{d}}\right) \cdot e^{e}\right) \cdot \sqrt[3]{e^{d}}\right)\right)double f(double a, double b, double c, double d, double e) {
double r4535388 = e;
double r4535389 = d;
double r4535390 = r4535388 + r4535389;
double r4535391 = c;
double r4535392 = r4535390 + r4535391;
double r4535393 = b;
double r4535394 = r4535392 + r4535393;
double r4535395 = a;
double r4535396 = r4535394 + r4535395;
return r4535396;
}
double f(double a, double b, double c, double d, double e) {
double r4535397 = b;
double r4535398 = exp(r4535397);
double r4535399 = c;
double r4535400 = exp(r4535399);
double r4535401 = r4535398 * r4535400;
double r4535402 = a;
double r4535403 = exp(r4535402);
double r4535404 = r4535401 * r4535403;
double r4535405 = d;
double r4535406 = exp(r4535405);
double r4535407 = cbrt(r4535406);
double r4535408 = r4535407 * r4535407;
double r4535409 = e;
double r4535410 = exp(r4535409);
double r4535411 = r4535408 * r4535410;
double r4535412 = r4535411 * r4535407;
double r4535413 = r4535404 * r4535412;
double r4535414 = log(r4535413);
return r4535414;
}




Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d




Bits error versus e
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.0 |
Initial program 0.4
rmApplied add-log-exp0.4
Applied add-log-exp0.4
Applied add-log-exp0.4
Applied add-log-exp0.4
Applied sum-log0.4
Applied sum-log0.3
Applied sum-log0.2
Simplified0.3
rmApplied add-log-exp0.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.2
Applied add-log-exp0.2
Applied add-log-exp0.2
Applied sum-log0.2
Applied sum-log0.0
Applied rem-exp-log0.0
rmApplied add-cube-cbrt0.0
Applied associate-*r*0.0
Final simplification0.0
herbie shell --seed 2019142
(FPCore (a b c d e)
:name "Expression 1, p15"
:pre (<= 1 a 2 b 4 c 8 d 16 e 32)
:herbie-target
(+ (+ d (+ c (+ a b))) e)
(+ (+ (+ (+ e d) c) b) a))