\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(\left(\sqrt{e^{c}} \cdot \left(e^{e} \cdot \sqrt{e^{c}}\right)\right) \cdot \left(e^{a} \cdot e^{b}\right)\right) \cdot e^{d}\right)double f(double a, double b, double c, double d, double e) {
double r4092469 = e;
double r4092470 = d;
double r4092471 = r4092469 + r4092470;
double r4092472 = c;
double r4092473 = r4092471 + r4092472;
double r4092474 = b;
double r4092475 = r4092473 + r4092474;
double r4092476 = a;
double r4092477 = r4092475 + r4092476;
return r4092477;
}
double f(double a, double b, double c, double d, double e) {
double r4092478 = c;
double r4092479 = exp(r4092478);
double r4092480 = sqrt(r4092479);
double r4092481 = e;
double r4092482 = exp(r4092481);
double r4092483 = r4092482 * r4092480;
double r4092484 = r4092480 * r4092483;
double r4092485 = a;
double r4092486 = exp(r4092485);
double r4092487 = b;
double r4092488 = exp(r4092487);
double r4092489 = r4092486 * r4092488;
double r4092490 = r4092484 * r4092489;
double r4092491 = d;
double r4092492 = exp(r4092491);
double r4092493 = r4092490 * r4092492;
double r4092494 = log(r4092493);
return r4092494;
}




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 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.2
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 2019152
(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))