MATLAB Function Reference | Search  Help Desk |
acos, acosh | Examples See Also |
Inverse cosine and inverse hyperbolic cosine
Y = acos(X) Y = acosh(X)The
acos
and acosh
functions operate element-wise on arrays. The functions' domains and ranges include complex values. All angles are in radians.
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.
Y = acosh(X)
returns the inverse hyperbolic cosine for each element of X
.
Graph the inverse cosine function over the domain and the inverse hyperbolic cosine function over the domain
x = -1:.05:1; plot(x,acos(x)) x = 1:pi/40:pi; plot(x,acosh(x))
cos
, cosh
Cosine and hyperbolic cosine