\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{d} \cdot e^{a}\right) \cdot \left(e^{e} \cdot \left(e^{c} \cdot e^{b}\right)\right)\right)double f(double a, double b, double c, double d, double e) {
double r4074028 = e;
double r4074029 = d;
double r4074030 = r4074028 + r4074029;
double r4074031 = c;
double r4074032 = r4074030 + r4074031;
double r4074033 = b;
double r4074034 = r4074032 + r4074033;
double r4074035 = a;
double r4074036 = r4074034 + r4074035;
return r4074036;
}
double f(double a, double b, double c, double d, double e) {
double r4074037 = d;
double r4074038 = exp(r4074037);
double r4074039 = a;
double r4074040 = exp(r4074039);
double r4074041 = r4074038 * r4074040;
double r4074042 = e;
double r4074043 = exp(r4074042);
double r4074044 = c;
double r4074045 = exp(r4074044);
double r4074046 = b;
double r4074047 = exp(r4074046);
double r4074048 = r4074045 * r4074047;
double r4074049 = r4074043 * r4074048;
double r4074050 = r4074041 * r4074049;
double r4074051 = log(r4074050);
return r4074051;
}




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.2
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
Final simplification0.0
herbie shell --seed 2019132
(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))