\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(e^{\log \left(e^{\left(c + a\right) + \left(e + \left(d + b\right)\right)}\right)}\right)double f(double a, double b, double c, double d, double e) {
double r14636331 = e;
double r14636332 = d;
double r14636333 = r14636331 + r14636332;
double r14636334 = c;
double r14636335 = r14636333 + r14636334;
double r14636336 = b;
double r14636337 = r14636335 + r14636336;
double r14636338 = a;
double r14636339 = r14636337 + r14636338;
return r14636339;
}
double f(double a, double b, double c, double d, double e) {
double r14636340 = c;
double r14636341 = a;
double r14636342 = r14636340 + r14636341;
double r14636343 = e;
double r14636344 = d;
double r14636345 = b;
double r14636346 = r14636344 + r14636345;
double r14636347 = r14636343 + r14636346;
double r14636348 = r14636342 + r14636347;
double r14636349 = exp(r14636348);
double r14636350 = log(r14636349);
double r14636351 = exp(r14636350);
double r14636352 = log(r14636351);
return r14636352;
}




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.3 |
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.1
Simplified0.3
Final simplification0.3
herbie shell --seed 2019121
(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))