atan
Summary
Returns the arctangent of a number.
Syntax
Math.atan( number )
Examples
var v1 = Math.atan(-1.0);
document.write(v1);
// Output: -0.7853981633974483
Remarks
The required number argument is a numeric expression for which the arctangent is needed.
The return value is the arctangent of the number argument, in radians.
Applies To : Math Object
See also
Other articles
- Math.acos Function
- Math.asin Function
- Math.atan2 Function
- Math.cos Function
- Math.sin Function
- Math.tan Function
- Math Object
Attributions
Microsoft Developer Network: Article