function acos

Returns the arcus cosine of its argument, which can be either real, complex or a matrix. The returned value's type is changed to complex if necessary (when the absolute value of the argument is greater than 1). By default, the returned value is in radians. This can be changed by specifying the switch /deg.

Syntax
result = acos(X [, /deg])

Arguments
X:   a number (integer, real, complex) or a matrix, specifying the cosine 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.


Switches
/deg:   The result will be in degrees


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

See also
function asin
function atan
category index: trigonometry