Go to the first, previous, next, last section, table of contents.


acos

Syntax

#include <math.h>

double acos(double x);

Description

This function returns the angle in the range [0..Pi] radians whose cosine is x. If the absolute value of x is greater than 1, a domain error occurs, and errno is set to EDOM.

Return Value

The arc cosine, in radians, of x. If the absolute value of x is greater than 1, the function returns a NaN.

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.