SECH
Returns the hyperbolic secant of a number, defined as 1 / COSH(x).
SECH produces values in (0, 1] for real inputs.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=SECH(number)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | any | Required | — |
How it works
Hyperbolic secant is 1 / cosh(x). It is defined for all real x and reaches its maximum of 1 at zero.
Remarks
- Domain: accepts any real number.
- Radians: this function is hyperbolic, so the input is not treated as an angle in radians.
Error cases
- Errors: no function-specific domain errors are produced.
Examples
Take the reciprocal of cosh(0.5).
Formula =SECH(0.5)
Expected result 0.886818883970074
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Cosh is the same at both inputs, so the reciprocal is unchanged.
Formula =SECH(-0.5)
Expected result 0.886818883970074
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The hyperbolic secant reaches one at zero.
Formula =SECH(0)
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The text “invalid” cannot be used as the input to the hyperbolic secant.
Formula =SECH("invalid")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Hyperbolic secant at two
Formula =SECH(2)
Expected result 0.26580222883408
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Can SECH be negative for real inputs?
No. For real numbers, SECH = 1/COSH is always positive.