mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
1.3 KiB
1.3 KiB
| layout |
|---|
| default |
Function asech #
Calculate the hyperbolic arcsecant of a value,
defined as asech(x) = acosh(1/x) = ln(sqrt(1/x^2 - 1) + 1/x).
To avoid confusion with the matrix hyperbolic arcsecant, this function does not apply to matrices.
Syntax #
math.asech(x)
Parameters #
| Parameter | Type | Description |
|---|---|---|
x |
number | BigNumber | Complex | Function input |
Returns #
| Type | Description |
|---|---|
| number | BigNumber | Complex | Hyperbolic arcsecant of x |
Throws #
| Type | Description |
|---|
Examples #
math.asech(0.5) // returns 1.3169578969248166