mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
552 B
552 B
Function cot
Calculate the cotangent of a value. cot(x) is defined as 1 / tan(x)
cot(x)
For matrices, the function is evaluated element wise.
Parameters
| Parameter | Type | Description |
|---|---|---|
x |
Number | Boolean | Complex | Unit | Array | Matrix |
Returns
| Type | Description |
|---|---|
| Number | Complex | Array | Matrix | res |