Average Error: 0.0 → 0.0
Time: 22.2s
Precision: 64
Internal precision: 128
\[\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: 22.2s) Debug log

Please include this information when filing a bug report:

herbie --seed '#(2449533605 3283112897 891735183 2608126379 3558329795 3015287641)'
(FPCore (x)
  :name "Hyperbolic secant"
  (/ 2 (+ (exp x) (exp (- x)))))