atan()

Returns the arctangent (inverse tangent) of the given value in radians.

Syntax

atan(value)

Parameters

Parameter Type Description
value Number A number to compute arctangent.

Return Value

Examples

atan(0);     // returns 0
atan(1);     // returns pi()/4
atan(-1);    // returns -pi()/4

See also

pi
sin
asin
cos
acos
tan
atan
atan2
rad2deg
deg2rad