Average Error: 17.6 → 0.5
Time: 31.0s
Precision: 64
Internal Precision: 1344
\[\left(J \cdot \left(e^{\ell} - e^{-\ell}\right)\right) \cdot \cos \left(\frac{K}{2}\right) + U\]
\[U + \cos \left(\frac{K}{2}\right) \cdot \left(2 \cdot \left(J \cdot \ell\right)\right)\]

Error

Bits error versus J

Bits error versus l

Bits error versus K

Bits error versus U

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 17.6

    \[\left(J \cdot \left(e^{\ell} - e^{-\ell}\right)\right) \cdot \cos \left(\frac{K}{2}\right) + U\]
  2. Initial simplification17.7

    \[\leadsto U + \left(J \cdot e^{\ell} - \frac{J}{e^{\ell}}\right) \cdot \cos \left(\frac{K}{2}\right)\]
  3. Taylor expanded around 0 0.5

    \[\leadsto U + \color{blue}{\left(2 \cdot \left(J \cdot \ell\right)\right)} \cdot \cos \left(\frac{K}{2}\right)\]
  4. Final simplification0.5

    \[\leadsto U + \cos \left(\frac{K}{2}\right) \cdot \left(2 \cdot \left(J \cdot \ell\right)\right)\]

Runtime

Time bar (total: 31.0s)Debug logProfile

herbie shell --seed 2018216 
(FPCore (J l K U)
  :name "Maksimov and Kolovsky, Equation (4)"
  (+ (* (* J (- (exp l) (exp (- l)))) (cos (/ K 2))) U))