\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(e^{a} \cdot \left(\left(\sqrt{e^{d} \cdot e^{b}} \cdot \sqrt{e^{d} \cdot e^{b}}\right) \cdot \left(e^{c} \cdot e^{e}\right)\right)\right)double f(double a, double b, double c, double d, double e) {
double r2305009 = e;
double r2305010 = d;
double r2305011 = r2305009 + r2305010;
double r2305012 = c;
double r2305013 = r2305011 + r2305012;
double r2305014 = b;
double r2305015 = r2305013 + r2305014;
double r2305016 = a;
double r2305017 = r2305015 + r2305016;
return r2305017;
}
double f(double a, double b, double c, double d, double e) {
double r2305018 = a;
double r2305019 = exp(r2305018);
double r2305020 = d;
double r2305021 = exp(r2305020);
double r2305022 = b;
double r2305023 = exp(r2305022);
double r2305024 = r2305021 * r2305023;
double r2305025 = sqrt(r2305024);
double r2305026 = r2305025 * r2305025;
double r2305027 = c;
double r2305028 = exp(r2305027);
double r2305029 = e;
double r2305030 = exp(r2305029);
double r2305031 = r2305028 * r2305030;
double r2305032 = r2305026 * r2305031;
double r2305033 = r2305019 * r2305032;
double r2305034 = log(r2305033);
return r2305034;
}




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 sum-log0.3
Applied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.2
Applied add-log-exp0.2
Applied sum-log0.0
Applied rem-exp-log0.0
rmApplied add-sqr-sqrt0.0
Final simplification0.0
herbie shell --seed 2019151 +o rules:numerics
(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))