UNPKG

871 BMarkdownView Raw
1<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
2
3# Function acsc
4
5Calculate the inverse cosecant of a value, defined as `acsc(x) = asin(1/x)`.
6
7For matrices, the function is evaluated element wise.
8
9
10## Syntax
11
12```js
13math.acsc(x)
14```
15
16### Parameters
17
18Parameter | Type | Description
19--------- | ---- | -----------
20`x` | number &#124; Complex &#124; Array &#124; Matrix | Function input
21
22### Returns
23
24Type | Description
25---- | -----------
26number &#124; Complex &#124; Array &#124; Matrix | The arc cosecant of x
27
28
29## Examples
30
31```js
32math.acsc(0.5) // returns number 0.5235987755982989
33math.acsc(math.csc(1.5)) // returns number ~1.5
34
35math.acsc(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i
36```
37
38
39## See also
40
41[csc](csc.md),
42[asin](asin.md),
43[asec](asec.md)