\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{b} \cdot e^{c}\right) \cdot \left(e^{a} \cdot \left(e^{d} \cdot e^{e}\right)\right)\right)double f(double a, double b, double c, double d, double e) {
double r4611689 = e;
double r4611690 = d;
double r4611691 = r4611689 + r4611690;
double r4611692 = c;
double r4611693 = r4611691 + r4611692;
double r4611694 = b;
double r4611695 = r4611693 + r4611694;
double r4611696 = a;
double r4611697 = r4611695 + r4611696;
return r4611697;
}
double f(double a, double b, double c, double d, double e) {
double r4611698 = b;
double r4611699 = exp(r4611698);
double r4611700 = c;
double r4611701 = exp(r4611700);
double r4611702 = r4611699 * r4611701;
double r4611703 = a;
double r4611704 = exp(r4611703);
double r4611705 = d;
double r4611706 = exp(r4611705);
double r4611707 = e;
double r4611708 = exp(r4611707);
double r4611709 = r4611706 * r4611708;
double r4611710 = r4611704 * r4611709;
double r4611711 = r4611702 * r4611710;
double r4611712 = log(r4611711);
return r4611712;
}




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 add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied add-log-exp0.3
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 add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.2
Applied sum-log0.0
Applied rem-exp-log0.0
Final simplification0.0
herbie shell --seed 2019134
(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))