| MATLAB® | ![]() |
Y = acos(X)
Y = acos(X) returns the
inverse cosine (arccosine) for each element of X. For real elements of X in the domain
, acos(X) is real and in the range
. For real elements of X outside
the domain
, acos(X) is complex.
The acos function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
Graph the inverse cosine function over the domain
.
x = -1:.05:1; plot(x,acos(x)), grid on

The inverse cosine can be defined as

acos uses FDLIBM, which was developed at SunSoft, a Sun Microsystems™ business, by Kwok C. Ng, and others. For information about FDLIBM, see http://www.netlib.org.
![]() | accumarray | acosd | ![]() |
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |