tan
Summary
Returns the tangent of a number.
Syntax
Math.tan( radians )
Examples
var v1 = Math.tan(1.0);
document.write(v1);
// Output: 1.5574077246549023
Remarks
The required radians argument is a numeric expression that contains an angle measured in radians.
The return value is the tangent of the numeric argument of radians.
See also
Other articles
- Math.acos Function
- Math.asin Function
- Math.atan Function
- Math.atan2 Function
- Math.cos Function
- Math.sin Function
Attributions
Microsoft Developer Network: Windows Internet Explorer JavaScript reference Article