1 |
|
2 |
|
3 | # Function csc
|
4 |
|
5 | Calculate the cosecant of a value, defined as `csc(x) = 1/sin(x)`.
|
6 |
|
7 | For matrices, the function is evaluated element wise.
|
8 |
|
9 |
|
10 | ## Syntax
|
11 |
|
12 | ```js
|
13 | math.csc(x)
|
14 | ```
|
15 |
|
16 | ### Parameters
|
17 |
|
18 | Parameter | Type | Description
|
19 | --------- | ---- | -----------
|
20 | `x` | number | Complex | Unit | Array | Matrix | Function input
|
21 |
|
22 | ### Returns
|
23 |
|
24 | Type | Description
|
25 | ---- | -----------
|
26 | number | Complex | Array | Matrix | Cosecant of x
|
27 |
|
28 |
|
29 | ## Examples
|
30 |
|
31 | ```js
|
32 | math.csc(2) // returns number 1.099750170294617
|
33 | 1 / math.sin(2) // returns number 1.099750170294617
|
34 | ```
|
35 |
|
36 |
|
37 | ## See also
|
38 |
|
39 | [sin](sin.md),
|
40 | [sec](sec.md),
|
41 | [cot](cot.md)
|