UNPKG

756 BMarkdownView Raw
1<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
2
3# Function asech
4
5Calculate the hyperbolic arcsecant of a value,
6defined as `asech(x) = acosh(1/x) = ln(sqrt(1/x^2 - 1) + 1/x)`.
7
8For matrices, the function is evaluated element wise.
9
10
11## Syntax
12
13```js
14math.asech(x)
15```
16
17### Parameters
18
19Parameter | Type | Description
20--------- | ---- | -----------
21`x` | number &#124; Complex &#124; Array &#124; Matrix | Function input
22
23### Returns
24
25Type | Description
26---- | -----------
27number &#124; Complex &#124; Array &#124; Matrix | Hyperbolic arcsecant of x
28
29
30## Examples
31
32```js
33math.asech(0.5) // returns 1.3169578969248166
34```
35
36
37## See also
38
39[acsch](acsch.md),
40[acoth](acoth.md)