\left(\left(\left(e + d\right) + c\right) + b\right) + a
\log \left(\left(\sqrt{e^{c} \cdot \left(\left(e^{e} \cdot e^{b}\right) \cdot e^{a}\right)} \cdot \sqrt{\sqrt[3]{\left(\left(e^{c} \cdot e^{c}\right) \cdot e^{c}\right) \cdot \left(\left(\left(e^{e} \cdot e^{b}\right) \cdot e^{a}\right) \cdot \left(\left(\left(e^{e} \cdot e^{b}\right) \cdot e^{a}\right) \cdot \left(\left(e^{e} \cdot e^{b}\right) \cdot e^{a}\right)\right)\right)}}\right) \cdot e^{d}\right)double f(double a, double b, double c, double d, double e) {
double r3068025 = e;
double r3068026 = d;
double r3068027 = r3068025 + r3068026;
double r3068028 = c;
double r3068029 = r3068027 + r3068028;
double r3068030 = b;
double r3068031 = r3068029 + r3068030;
double r3068032 = a;
double r3068033 = r3068031 + r3068032;
return r3068033;
}
double f(double a, double b, double c, double d, double e) {
double r3068034 = c;
double r3068035 = exp(r3068034);
double r3068036 = e;
double r3068037 = exp(r3068036);
double r3068038 = b;
double r3068039 = exp(r3068038);
double r3068040 = r3068037 * r3068039;
double r3068041 = a;
double r3068042 = exp(r3068041);
double r3068043 = r3068040 * r3068042;
double r3068044 = r3068035 * r3068043;
double r3068045 = sqrt(r3068044);
double r3068046 = r3068035 * r3068035;
double r3068047 = r3068046 * r3068035;
double r3068048 = r3068043 * r3068043;
double r3068049 = r3068043 * r3068048;
double r3068050 = r3068047 * r3068049;
double r3068051 = cbrt(r3068050);
double r3068052 = sqrt(r3068051);
double r3068053 = r3068045 * r3068052;
double r3068054 = d;
double r3068055 = exp(r3068054);
double r3068056 = r3068053 * r3068055;
double r3068057 = log(r3068056);
return r3068057;
}




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 add-log-exp0.3
Applied sum-log0.3
Applied sum-log0.3
Applied add-log-exp0.3
Applied sum-log0.2
Applied add-log-exp0.2
Applied sum-log0.0
Applied rem-exp-log0.0
rmApplied add-sqr-sqrt0.0
rmApplied add-cbrt-cube0.0
Applied add-cbrt-cube0.0
Applied cbrt-unprod0.0
Final simplification0.0
herbie shell --seed 2019142 +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))