[TOC]
acos
Inverse cosine in radians
Usage
acos(A)
A should be an array, which can be real or complex.
- It returns an array containing the inverse cosine (in radians) of each element of
A.
- For real elements of
A lying in , it returns values in . (See example below.)
- For real elements of
A having absolute value , it returns complex numbers.
- The output has the same size as
A.
Example
x = linspace(-1,1);
y = acos(x);
plot(x,y,'.-');
xlabel('x')
ylabel('acos(x)')
Output
