Average Error: 58.0 → 0.7
Time: 11.2s
Precision: 64
Internal Precision: 1344
\[\frac{e^{x} - e^{-x}}{2}\]
\[\frac{2 \cdot x + \left({x}^{5} \cdot \frac{1}{60} + \frac{1}{3} \cdot {x}^{3}\right)}{2}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.0

    \[\frac{e^{x} - e^{-x}}{2}\]
  2. Taylor expanded around 0 0.7

    \[\leadsto \frac{\color{blue}{2 \cdot x + \left(\frac{1}{3} \cdot {x}^{3} + \frac{1}{60} \cdot {x}^{5}\right)}}{2}\]
  3. Final simplification0.7

    \[\leadsto \frac{2 \cdot x + \left({x}^{5} \cdot \frac{1}{60} + \frac{1}{3} \cdot {x}^{3}\right)}{2}\]

Runtime

Time bar (total: 11.2s)Debug logProfile

herbie shell --seed 2018249 
(FPCore (x)
  :name "Hyperbolic sine"
  (/ (- (exp x) (exp (- x))) 2))