Average Error: 58.2 → 0.6
Time: 36.4s
Precision: 64
Internal Precision: 1344
\[\frac{e^{x} - e^{-x}}{2}\]
\[\frac{(\left((\left(x \cdot x\right) \cdot \frac{1}{3} + 2)_*\right) \cdot x + \left({x}^{5} \cdot \frac{1}{60}\right))_*}{2}\]

Error

Bits error versus x

Derivation

  1. Initial program 58.2

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

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

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

Runtime

Time bar (total: 36.4s)Debug logProfile

herbie shell --seed 2020178 +o rules:numerics
(FPCore (x)
  :name "Hyperbolic sine"
  (/ (- (exp x) (exp (- x))) 2))