Functions

cot

Supported By

Syntax

[the] cot of factor

cot ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put the cot of 2 -- yields -0.457658

Description

The cot function returns the cotangent of the angle that is passed to it. The angle must be expressed in radians.

If the argument is an integer or a number, a number is returned. If the argument is a complex, a complex is returned.

Note

Radians can be converted to degrees with the toDegrees function, or by multiplying by 180 and dividing by pi. Degrees can be converted to radians with the toRadians function, or by multiplying by pi and dividing by 180.