Cos Function

Purpose:

To return the cosine of a number.

Syntax:

cos(x)

Comments:

x must be given in radians.

Example:

print cos(PI)

-1.0000

p cos(360/RAD) // convert degrees to radians

1.0000

 

PI and RAD are built in constants.