Average Error: 58.1 → 58.1
Time: 2.7s
Precision: binary64
\[\frac{e^{x} - e^{-x}}{2}\]
\[\frac{e^{x} - e^{-x}}{2}\]

Error

Bits error versus x

Derivation

  1. Initial program 58.1

    \[\frac{e^{x} - e^{-x}}{2}\]
  2. Final simplification58.1

    \[\leadsto \frac{e^{x} - e^{-x}}{2}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ (- (exp x) (exp (- x))) 2)"
  :precision binary64
  (/ (- (exp x) (exp (neg x))) 2.0))