MATLAB Function Reference    
acos, acosh

Inverse cosine and inverse hyperbolic cosine

Syntax

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

Algorithm

See Also

cos, cosh


 abs acot, acoth