\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(e^{d} \cdot e^{e}\right) \cdot \left(e^{a} \cdot \left(e^{c} \cdot e^{b}\right)\right)\right)double f(double a, double b, double c, double d, double e) {
double r6473447 = e;
double r6473448 = d;
double r6473449 = r6473447 + r6473448;
double r6473450 = c;
double r6473451 = r6473449 + r6473450;
double r6473452 = b;
double r6473453 = r6473451 + r6473452;
double r6473454 = a;
double r6473455 = r6473453 + r6473454;
return r6473455;
}
double f(double a, double b, double c, double d, double e) {
double r6473456 = d;
double r6473457 = exp(r6473456);
double r6473458 = e;
double r6473459 = exp(r6473458);
double r6473460 = r6473457 * r6473459;
double r6473461 = a;
double r6473462 = exp(r6473461);
double r6473463 = c;
double r6473464 = exp(r6473463);
double r6473465 = b;
double r6473466 = exp(r6473465);
double r6473467 = r6473464 * r6473466;
double r6473468 = r6473462 * r6473467;
double r6473469 = r6473460 * r6473468;
double r6473470 = log(r6473469);
return r6473470;
}




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