This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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

Attributions

  • Microsoft Developer Network: Article