\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(e^{d + c}\right) + \left(e + \left(a + b\right)\right)double f(double a, double b, double c, double d, double e) {
double r2091755 = e;
double r2091756 = d;
double r2091757 = r2091755 + r2091756;
double r2091758 = c;
double r2091759 = r2091757 + r2091758;
double r2091760 = b;
double r2091761 = r2091759 + r2091760;
double r2091762 = a;
double r2091763 = r2091761 + r2091762;
return r2091763;
}
double f(double a, double b, double c, double d, double e) {
double r2091764 = d;
double r2091765 = c;
double r2091766 = r2091764 + r2091765;
double r2091767 = exp(r2091766);
double r2091768 = log(r2091767);
double r2091769 = e;
double r2091770 = a;
double r2091771 = b;
double r2091772 = r2091770 + r2091771;
double r2091773 = r2091769 + r2091772;
double r2091774 = r2091768 + r2091773;
return r2091774;
}




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.2 |
Initial program 0.4
Taylor expanded around -inf 0.4
rmApplied add-log-exp0.4
Applied add-log-exp0.4
Applied sum-log0.4
Simplified0.3
rmApplied exp-sum0.3
Applied log-prod0.3
Applied associate-+l+0.3
Simplified0.2
Final simplification0.2
herbie shell --seed 2019153
(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))