\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(\left(\sqrt{e^{a}} \cdot \left(e^{c} \cdot \sqrt{e^{a}}\right)\right) \cdot e^{b}\right) \cdot \left(e^{d} \cdot e^{e}\right)\right)double f(double a, double b, double c, double d, double e) {
double r4513056 = e;
double r4513057 = d;
double r4513058 = r4513056 + r4513057;
double r4513059 = c;
double r4513060 = r4513058 + r4513059;
double r4513061 = b;
double r4513062 = r4513060 + r4513061;
double r4513063 = a;
double r4513064 = r4513062 + r4513063;
return r4513064;
}
double f(double a, double b, double c, double d, double e) {
double r4513065 = a;
double r4513066 = exp(r4513065);
double r4513067 = sqrt(r4513066);
double r4513068 = c;
double r4513069 = exp(r4513068);
double r4513070 = r4513069 * r4513067;
double r4513071 = r4513067 * r4513070;
double r4513072 = b;
double r4513073 = exp(r4513072);
double r4513074 = r4513071 * r4513073;
double r4513075 = d;
double r4513076 = exp(r4513075);
double r4513077 = e;
double r4513078 = exp(r4513077);
double r4513079 = r4513076 * r4513078;
double r4513080 = r4513074 * r4513079;
double r4513081 = log(r4513080);
return r4513081;
}




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 add-log-exp0.4
Applied sum-log0.4
Applied sum-log0.3
Applied sum-log0.2
Applied sum-log0.0
Simplified0.3
rmApplied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied add-log-exp0.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
rmApplied add-sqr-sqrt0.0
Applied associate-*l*0.0
Final simplification0.0
herbie shell --seed 2019163
(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))