\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(e^{a} \cdot \left(e^{d} \cdot \left(e^{e} \cdot \left(e^{b} \cdot e^{c}\right)\right)\right)\right)double f(double a, double b, double c, double d, double e) {
double r5660713 = e;
double r5660714 = d;
double r5660715 = r5660713 + r5660714;
double r5660716 = c;
double r5660717 = r5660715 + r5660716;
double r5660718 = b;
double r5660719 = r5660717 + r5660718;
double r5660720 = a;
double r5660721 = r5660719 + r5660720;
return r5660721;
}
double f(double a, double b, double c, double d, double e) {
double r5660722 = a;
double r5660723 = exp(r5660722);
double r5660724 = d;
double r5660725 = exp(r5660724);
double r5660726 = e;
double r5660727 = exp(r5660726);
double r5660728 = b;
double r5660729 = exp(r5660728);
double r5660730 = c;
double r5660731 = exp(r5660730);
double r5660732 = r5660729 * r5660731;
double r5660733 = r5660727 * r5660732;
double r5660734 = r5660725 * r5660733;
double r5660735 = r5660723 * r5660734;
double r5660736 = log(r5660735);
return r5660736;
}




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 associate-+l+0.3
rmApplied add-log-exp0.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.2
Applied sum-log0.0
Simplified0.3
rmApplied add-log-exp0.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.3
Applied sum-log0.2
Applied sum-log0.0
Applied rem-exp-log0.0
Final simplification0.0
herbie shell --seed 2019168
(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))