\left(J \cdot \left(e^{\ell} - e^{-\ell}\right)\right) \cdot \cos \left(\frac{K}{2}\right) + U
\frac{\left(4 \cdot \sinh \ell\right) \cdot \left(\cos \left(0.5 \cdot K\right) \cdot J\right)}{2} + U
(FPCore (J l K U) :precision binary64 (+ (* (* J (- (exp l) (exp (- l)))) (cos (/ K 2.0))) U))
(FPCore (J l K U) :precision binary64 (+ (/ (* (* 4.0 (sinh l)) (* (cos (* 0.5 K)) J)) 2.0) U))
double code(double J, double l, double K, double U) {
return ((J * (exp(l) - exp(-l))) * cos(K / 2.0)) + U;
}
double code(double J, double l, double K, double U) {
return (((4.0 * sinh(l)) * (cos(0.5 * K) * J)) / 2.0) + U;
}



Bits error versus J



Bits error versus l



Bits error versus K



Bits error versus U
Results
Initial program 17.5
rmApplied sinh-undef_binary640.1
Applied associate-*r*_binary640.1
Simplified0.1
rmApplied sinh-def_binary6417.5
Applied associate-*r/_binary6417.5
Applied associate-*l/_binary6417.5
Simplified0.1
Taylor expanded around 0 17.5
Simplified0.1
rmApplied associate-*r*_binary640.1
Simplified0.1
Final simplification0.1
herbie shell --seed 2021190
(FPCore (J l K U)
:name "Maksimov and Kolovsky, Equation (4)"
:precision binary64
(+ (* (* J (- (exp l) (exp (- l)))) (cos (/ K 2.0))) U))