Average Error: 0.0 → 0.0
Time: 1.0s
Precision: binary64
\[\frac{e^{x} + e^{-x}}{2}\]
\[\frac{e^{x} + e^{-x}}{2}\]

Error

Bits error versus x

Derivation

  1. Initial program 0.0

    \[\frac{e^{x} + e^{-x}}{2}\]
  2. Final simplification0.0

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

Reproduce

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