Average Error: 0.0 → 0.0
Time: 11.8s
Precision: 64
Internal Precision: 384
\[\frac{2}{e^{x} + e^{-x}}\]
\[(e^{\log_* (1 + \frac{2}{e^{x} + e^{-x}})} - 1)^*\]

Error

Bits error versus x

Derivation

  1. Initial program 0.0

    \[\frac{2}{e^{x} + e^{-x}}\]
  2. Using strategy rm
  3. Applied expm1-log1p-u0.0

    \[\leadsto \color{blue}{(e^{\log_* (1 + \frac{2}{e^{x} + e^{-x}})} - 1)^*}\]

Runtime

Time bar (total: 11.8s)Debug logProfile

herbie shell --seed '#(1070258749 1877548225 2229079127 1588002776 3179087814 1886870650)' +o rules:numerics
(FPCore (x)
  :name "Hyperbolic secant"
  (/ 2 (+ (exp x) (exp (- x)))))