Average Error: 0.0 → 0.0
Time: 1.0m
Precision: 64
Internal Precision: 384
\[\frac{2}{e^{x} + e^{-x}}\]
\[\frac{2}{e^{x} + e^{-x}}\]

Error

Bits error versus x

Derivation

  1. Initial program 0.0

    \[\frac{2}{e^{x} + e^{-x}}\]
  2. Removed slow pow expressions.

Runtime

Time bar (total: 1.0m)Debug logProfile

herbie shell --seed '#(1062930989 876886121 3990119081 3032829768 3060892583 1929069376)' 
(FPCore (x)
  :name "Hyperbolic secant"
  (/ 2 (+ (exp x) (exp (- x)))))