Function cot

Calculate the cotangent of a value. Defined as cot(x) = 1 / tan(x).

For matrices, the function is evaluated element wise.

Syntax

cot(x)

Parameters

Parameter Type Description
x number | Complex | Unit | Array | Matrix Function input

Returns

Type Description
number | Complex | Array | Matrix Cotangent of x

Examples

cot(2);      // returns number -0.45765755436028577
1 / tan(2);  // returns number -0.45765755436028577

See also

tan, sec, csc