Functions

cos

Supported By

Syntax

[the] cos of factor

cos ( expression )

Factor and expression yield integers, numbers, or complexes.

Example

put the cos of 2 -- yields -0.416147

Description

The cos function returns the cosine 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.