Quantcast

Documentation Center

  • Trial Software
  • Product Updates

acos

Inverse cosine 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

expand all

Graph of Inverse Cosine Function

Graph the inverse cosine function over the domain $-1 \le x \le 1$ .

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

More About

expand all

Inverse Cosine

The inverse can be defined as

See Also

| |

Was this topic helpful?