1 |
|
2 |
|
3 | # Function atan
|
4 |
|
5 | Calculate the inverse tangent of a value.
|
6 |
|
7 | For matrices, the function is evaluated element wise.
|
8 |
|
9 |
|
10 | ## Syntax
|
11 |
|
12 | ```js
|
13 | math.atan(x)
|
14 | ```
|
15 |
|
16 | ### Parameters
|
17 |
|
18 | Parameter | Type | Description
|
19 | --------- | ---- | -----------
|
20 | `x` | number | BigNumber | Complex | Array | Matrix | Function input
|
21 |
|
22 | ### Returns
|
23 |
|
24 | Type | Description
|
25 | ---- | -----------
|
26 | number | BigNumber | Complex | Array | Matrix | The arc tangent of x
|
27 |
|
28 |
|
29 | ## Examples
|
30 |
|
31 | ```js
|
32 | math.atan(0.5) // returns number 0.4636476090008061
|
33 | math.atan(math.tan(1.5)) // returns number 1.5
|
34 |
|
35 | math.atan(2) // returns Complex 1.5707963267948966 -1.3169578969248166 i
|
36 | ```
|
37 |
|
38 |
|
39 | ## See also
|
40 |
|
41 | [tan](tan.md),
|
42 | [asin](asin.md),
|
43 | [acos](acos.md)
|