\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{d} \cdot e^{e}\right) \cdot \left(e^{b} \cdot \left(e^{a} \cdot e^{c}\right)\right)\right)double f(double a, double b, double c, double d, double e) {
double r2112043 = e;
double r2112044 = d;
double r2112045 = r2112043 + r2112044;
double r2112046 = c;
double r2112047 = r2112045 + r2112046;
double r2112048 = b;
double r2112049 = r2112047 + r2112048;
double r2112050 = a;
double r2112051 = r2112049 + r2112050;
return r2112051;
}
double f(double a, double b, double c, double d, double e) {
double r2112052 = d;
double r2112053 = exp(r2112052);
double r2112054 = e;
double r2112055 = exp(r2112054);
double r2112056 = r2112053 * r2112055;
double r2112057 = b;
double r2112058 = exp(r2112057);
double r2112059 = a;
double r2112060 = exp(r2112059);
double r2112061 = c;
double r2112062 = exp(r2112061);
double r2112063 = r2112060 * r2112062;
double r2112064 = r2112058 * r2112063;
double r2112065 = r2112056 * r2112064;
double r2112066 = log(r2112065);
return r2112066;
}




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 add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.3
Applied sum-log0.1
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
(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))