\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{e} \cdot e^{c}\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 r2105390 = e;
double r2105391 = d;
double r2105392 = r2105390 + r2105391;
double r2105393 = c;
double r2105394 = r2105392 + r2105393;
double r2105395 = b;
double r2105396 = r2105394 + r2105395;
double r2105397 = a;
double r2105398 = r2105396 + r2105397;
return r2105398;
}
double f(double a, double b, double c, double d, double e) {
double r2105399 = e;
double r2105400 = exp(r2105399);
double r2105401 = c;
double r2105402 = exp(r2105401);
double r2105403 = r2105400 * r2105402;
double r2105404 = b;
double r2105405 = exp(r2105404);
double r2105406 = a;
double r2105407 = exp(r2105406);
double r2105408 = r2105405 * r2105407;
double r2105409 = d;
double r2105410 = exp(r2105409);
double r2105411 = r2105408 * r2105410;
double r2105412 = r2105403 * r2105411;
double r2105413 = log(r2105412);
return r2105413;
}




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.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 2019152 +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))