atan

The atan method returns the arctangent of a number as a value between -PI/2 and PI/2 radians.

 

Syntax

System.Double atan(System.Double x);

 

Parameters

x

Number between -PI/2 to PI/2.

 

Return Value

Returns the arctangent of a number. If the parameter x is outside the range -PI/2 to PI/2, the method will return NaN.

 

Remarks

Member of Math.

 

Example