\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 r45443575 = e;
double r45443576 = d;
double r45443577 = r45443575 + r45443576;
double r45443578 = c;
double r45443579 = r45443577 + r45443578;
double r45443580 = b;
double r45443581 = r45443579 + r45443580;
double r45443582 = a;
double r45443583 = r45443581 + r45443582;
return r45443583;
}
double f(double a, double b, double c, double d, double e) {
double r45443584 = e;
double r45443585 = exp(r45443584);
double r45443586 = d;
double r45443587 = exp(r45443586);
double r45443588 = r45443585 * r45443587;
double r45443589 = b;
double r45443590 = exp(r45443589);
double r45443591 = c;
double r45443592 = exp(r45443591);
double r45443593 = a;
double r45443594 = exp(r45443593);
double r45443595 = r45443592 * r45443594;
double r45443596 = r45443590 * r45443595;
double r45443597 = r45443588 * r45443596;
double r45443598 = log(r45443597);
return r45443598;
}




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 2019125
(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))