function atan

Returns the arcus tangent of its argument, which can be either real, complex or a matrix. The returned value has the same type as the argument. By default, the returned value is in radians. This can be changed by specifying the switch /deg.

Syntax
result = atan(X [, Y] [, /deg])

Arguments
X:   a number (integer, real, complex) or a matrix, specifying the tangent of the angle to be returned. If X is a matrix, a matrix of the same size is returned where each element represents the result of the operation.
Y:   a real number. If given, returns atan(X / Y) for real numbers, quadrant correct.


Switches
/deg:   The result will be in degrees


Examples
To find the angle (in degrees) whose tangent is 0.5, type:
   print atan(0.5, /deg)

See also
function asin
function acos
category index: trigonometry