\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{a} \cdot e^{e}\right) \cdot \left(\left(e^{d} \cdot e^{c}\right) \cdot e^{b}\right)\right)double f(double a, double b, double c, double d, double e) {
double r3977119 = e;
double r3977120 = d;
double r3977121 = r3977119 + r3977120;
double r3977122 = c;
double r3977123 = r3977121 + r3977122;
double r3977124 = b;
double r3977125 = r3977123 + r3977124;
double r3977126 = a;
double r3977127 = r3977125 + r3977126;
return r3977127;
}
double f(double a, double b, double c, double d, double e) {
double r3977128 = a;
double r3977129 = exp(r3977128);
double r3977130 = e;
double r3977131 = exp(r3977130);
double r3977132 = r3977129 * r3977131;
double r3977133 = d;
double r3977134 = exp(r3977133);
double r3977135 = c;
double r3977136 = exp(r3977135);
double r3977137 = r3977134 * r3977136;
double r3977138 = b;
double r3977139 = exp(r3977138);
double r3977140 = r3977137 * r3977139;
double r3977141 = r3977132 * r3977140;
double r3977142 = log(r3977141);
return r3977142;
}




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 sum-log0.4
Applied sum-log0.3
Simplified0.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.2
Applied sum-log0.0
Applied rem-exp-log0.0
Final simplification0.0
herbie shell --seed 2019144 +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))