\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{c} \cdot e^{e}\right) \cdot \left(\left(e^{b} \cdot e^{a}\right) \cdot e^{d}\right)\right)double f(double a, double b, double c, double d, double e) {
double r5575564 = e;
double r5575565 = d;
double r5575566 = r5575564 + r5575565;
double r5575567 = c;
double r5575568 = r5575566 + r5575567;
double r5575569 = b;
double r5575570 = r5575568 + r5575569;
double r5575571 = a;
double r5575572 = r5575570 + r5575571;
return r5575572;
}
double f(double a, double b, double c, double d, double e) {
double r5575573 = c;
double r5575574 = exp(r5575573);
double r5575575 = e;
double r5575576 = exp(r5575575);
double r5575577 = r5575574 * r5575576;
double r5575578 = b;
double r5575579 = exp(r5575578);
double r5575580 = a;
double r5575581 = exp(r5575580);
double r5575582 = r5575579 * r5575581;
double r5575583 = d;
double r5575584 = exp(r5575583);
double r5575585 = r5575582 * r5575584;
double r5575586 = r5575577 * r5575585;
double r5575587 = log(r5575586);
return r5575587;
}




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 associate-+l+0.3
rmApplied 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 add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.0
Simplified0.2
rmApplied add-log-exp0.2
Applied add-log-exp0.2
Applied sum-log0.2
Applied add-log-exp0.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 2019179 +o rules:numerics
(FPCore (a b c d e)
:name "Expression 1, p15"
:pre (<= 1.0 a 2.0 b 4.0 c 8.0 d 16.0 e 32.0)
:herbie-target
(+ (+ d (+ c (+ a b))) e)
(+ (+ (+ (+ e d) c) b) a))