Math.tan(radians)
Top  Previous  Next


SWiSH Player Support
SWF4 or later - Supported Internally

Syntax
Math.tan(x)

Arguments
x: A number or expression representing the angle in radians.

Returns
A number, the tangent of (x).

Description
Calculates the tangent of x.

Sample
Math.tan(Math.PI / 4
);   // returns 1 (tan 45deg = 1)

Note: Requires Advanced Math Support. See here for more information

See Also
Math.acos(), Math.asin(), Math.atan(), Math.cos(), Math.cosdeg(), Math.sin(), Math.sindeg() and Math.tandeg().