Average Error: 58.9 → 0.1
Time: 8.5s
Precision: 64
Internal precision: 1408
\[\frac{e^{x} - e^{-x}}{2}\]
\[\frac{\left(x + x\right) + \left({x}^3 \cdot \frac{1}{3} + \frac{1}{60} \cdot {x}^{5}\right)}{2}\]

Error

Bits error versus x

Derivation

  1. Initial program 58.9

    \[\frac{e^{x} - e^{-x}}{2}\]
  2. Applied taylor 0.1

    \[\leadsto \frac{\frac{1}{3} \cdot {x}^{3} + \left(\frac{1}{60} \cdot {x}^{5} + 2 \cdot x\right)}{2}\]
  3. Taylor expanded around 0 0.1

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

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

Runtime

Time bar (total: 8.5s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1064524629 4159152179 2999149171 575749698 4006532819 692958815)'
(FPCore (x)
  :name "Hyperbolic sine"
  (/ (- (exp x) (exp (- x))) 2))