Average Error: 58.2 → 0.5
Time: 4.0m
Precision: 64
Internal Precision: 1344
\[\frac{e^{x} - e^{-x}}{2}\]
\[\frac{\frac{1}{3} \cdot {x}^{3} + \left(\frac{1}{60} \cdot {x}^{5} + 2 \cdot x\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.2

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

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

Runtime

Time bar (total: 4.0m)Debug logProfile

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