cos

Definition: atom x2 = cos(atom x1)
Description: Return the cosine of x1, where x1 is in radians.
Comments: This function may be applied to an atom or sq_cos() to all elements of a sequence. The rules for sequence operations apply.

Note that the following diagram uses degrees, ie cos(30*CD_DEG2RAD) = 0.866, where CD_DEG2RAD is defined in pGUI as PI/180.

Example:
x = cos(.5)
-- x is 0.8775826
See Also: sin, tan, log, sqrt