Atan

Calculates the arc tangent.

Syntax:

Atan(x)

Parameters:

(f) x: floating point number whose arc tangent is desired.

Returns:

(f)  The Atan function returns the arc tangent result of x.

 

The Atan function calculates the arc tangent of x, which returns a value in the range -p/2 to p/2 radians. If x is 0 a domain error occurs.

Example:

real=AskLine("ArcTan", "Enter a real number ", "34.6", 0)
answer=Atan(real)
Message("ArcTan of %real% is", answer)
See Also:

Acos, Asin, Cos, Sin, Tan