tan

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

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

Example:
t = tan(1.0)
-- t is 1.55741
See Also: sin, cos, arctan