\cos \left(\frac{K \cdot \left(m + n\right)}{2} - M\right) \cdot e^{\left(-{\left(\frac{m + n}{2} - M\right)}^{2}\right) - \left(\ell - \left|m - n\right|\right)}\sqrt[3]{e^{\left|m - n\right| - \left({\left(\frac{m + n}{2} - M\right)}^{2} + \ell\right)} \cdot \left(e^{\left|m - n\right| - \left({\left(\frac{m + n}{2} - M\right)}^{2} + \ell\right)} \cdot e^{\left|m - n\right| - \left({\left(\frac{m + n}{2} - M\right)}^{2} + \ell\right)}\right)}(FPCore (K m n M l) :precision binary64 (* (cos (- (/ (* K (+ m n)) 2.0) M)) (exp (- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n)))))))
(FPCore (K m n M l)
:precision binary64
(cbrt
(*
(exp (- (fabs (- m n)) (+ (pow (- (/ (+ m n) 2.0) M) 2.0) l)))
(*
(exp (- (fabs (- m n)) (+ (pow (- (/ (+ m n) 2.0) M) 2.0) l)))
(exp (- (fabs (- m n)) (+ (pow (- (/ (+ m n) 2.0) M) 2.0) l)))))))double code(double K, double m, double n, double M, double l) {
return cos(((K * (m + n)) / 2.0) - M) * exp(-pow((((m + n) / 2.0) - M), 2.0) - (l - fabs(m - n)));
}
double code(double K, double m, double n, double M, double l) {
return cbrt(exp(fabs(m - n) - (pow((((m + n) / 2.0) - M), 2.0) + l)) * (exp(fabs(m - n) - (pow((((m + n) / 2.0) - M), 2.0) + l)) * exp(fabs(m - n) - (pow((((m + n) / 2.0) - M), 2.0) + l))));
}







Bits error versus K







Bits error versus m







Bits error versus n







Bits error versus M







Bits error versus l
Results
| Alternative 1 | |
|---|---|
| Accuracy | 1.4 |
| Cost | 1664 |
| Alternative 2 | |
|---|---|
| Accuracy | 1.4 |
| Cost | 1152 |
| Alternative 3 | |
|---|---|
| Accuracy | 23.6 |
| Cost | 2176 |
| Alternative 4 | |
|---|---|
| Accuracy | 51.5 |
| Cost | 2688 |
Initial program 15.8
Taylor expanded around 0 1.4
rmApplied add-cbrt-cube_binary64_7961.4
Simplified1.4
rmApplied add-cbrt-cube_binary64_7961.4
Applied rem-cube-cbrt_binary64_7831.4
rmApplied pow1_binary64_8211.4
Final simplification1.4
herbie shell --seed 2020322
(FPCore (K m n M l)
:name "Maksimov and Kolovsky, Equation (32)"
:precision binary64
(* (cos (- (/ (* K (+ m n)) 2.0) M)) (exp (- (- (pow (- (/ (+ m n) 2.0) M) 2.0)) (- l (fabs (- m n)))))))