Skip to Main Content Skip to Search
Product Documentation

acos - Inverse cosine; result in radians

Syntax

Y = acos(X)

Description

Y = acos(X) returns the inverse cosine (arccosine) for each element of X. For real elements of X in the domain [–1, 1], acos(X) is real and in the range [0, π]. For real elements of X outside the domain [–1, 1], 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.

Examples

Graph the inverse cosine function over the domain –1 ≤ x ≤ 1.

x = -1:.05:1;
plot(x,acos(x)), grid on

Definitions

The inverse cosine can be defined as

See Also

acosd | acosh | cos

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS