Name

acos function — Computes inverse cosine

Synopsis

float acos(float x)
double acos(double x)
long double acos(long double x)

The acos function returns the inverse cosine of its argument. The parameter x must be in the range [-1, 1], or a domain error occurs. The return value is in the range [0, π].