acos

Trigonometric arccosine function.

Syntax

acos(expr)

Argument

expr
A valid scalar, vector, or matrix expression.

Example

Templex Expression Result
{acos(0)} 1.5708
{acos( {-1, 0, 1} )} 3.1416, 1.5708, 0
{acos( { {-1, 0},

{1, .5},

{-0.5, 0} } )}

{3.1416, 1.5708},

{0, 1.0472},

{2.0944, 1.5708}

Comments

The resulting angles are in radians.

If expr is a scalar, the result is the angle that, when evaluated by the cosine function, yields expr. expr must have an absolute value less than or equal to one.

If expr is a vector, the result is a vector containing the angles that, when evaluated by the cosine function, yield the elements of expr. The resultant vector has the same number of elements as expr. Each element of expr must have an absolute value less than or equal to one.

If expr is a matrix, the result is a matrix containing the angles that, when evaluated by the cosine function, yield the elements of expr. The resultant matrix has the same dimensions as expr. Each element of expr must have an absolute value less than or equal to one.