acos.md (902B)
1 <!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. --> 2 3 # Function acos 4 5 Calculate the inverse cosine of a value. 6 7 For matrices, the function is evaluated element wise. 8 9 10 ## Syntax 11 12 ```js 13 math.acos(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 cosine of x 27 28 29 ### Throws 30 31 Type | Description 32 ---- | ----------- 33 34 35 ## Examples 36 37 ```js 38 math.acos(0.5) // returns number 1.0471975511965979 39 math.acos(math.cos(1.5)) // returns number 1.5 40 41 math.acos(2) // returns Complex 0 + 1.3169578969248166 i 42 ``` 43 44 45 ## See also 46 47 [cos](cos.md), 48 [atan](atan.md), 49 [asin](asin.md)