MATLAB Function Reference |
Inverse cosine and inverse hyperbolic cosine
Syntax
Y = acos(X) Y = acosh(X)
Description
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
.
Examples
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))
Algorithm
See Also
abs | acot, acoth |