\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{e} \cdot e^{d}\right) \cdot \left(e^{b} \cdot \left(e^{c} \cdot e^{a}\right)\right)\right)double f(double a, double b, double c, double d, double e) {
double r45490055 = e;
double r45490056 = d;
double r45490057 = r45490055 + r45490056;
double r45490058 = c;
double r45490059 = r45490057 + r45490058;
double r45490060 = b;
double r45490061 = r45490059 + r45490060;
double r45490062 = a;
double r45490063 = r45490061 + r45490062;
return r45490063;
}
double f(double a, double b, double c, double d, double e) {
double r45490064 = e;
double r45490065 = exp(r45490064);
double r45490066 = d;
double r45490067 = exp(r45490066);
double r45490068 = r45490065 * r45490067;
double r45490069 = b;
double r45490070 = exp(r45490069);
double r45490071 = c;
double r45490072 = exp(r45490071);
double r45490073 = a;
double r45490074 = exp(r45490073);
double r45490075 = r45490072 * r45490074;
double r45490076 = r45490070 * r45490075;
double r45490077 = r45490068 * r45490076;
double r45490078 = log(r45490077);
return r45490078;
}




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.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.0
Applied rem-exp-log0.0
Final simplification0.0
herbie shell --seed 2019128 +o rules:numerics
(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))