acos
arc cosine function
INTERFACE
#include <math.h>
double acos ( double x )
long double acosl ( long double x )
float acosf ( float x )
#include <complex.h>
complex acos(complex x)
double complex cacos(double complex x)
float complex cacosf(float complex x)
long double complex cacosl(long double complex x)
DESCRIPTION
The acos function computes the principal value of the arc cosine of x in the range . acosl and acosf are the long double and the float versions, correspondingly.
The complex inverse cosine is defined by:
(1)
SPECIAL VALUES
acos ( 1 ) returns +0.
acos ( x ) returns a NaN and raises the invalid floating-point exception for |x| > 1.
SEE ALSO
sin, cos, tan, asin, atan, atan2, sinh, cosh, tanh
STANDARDS
The acos function conforms to ISO/IEC 9899:1999(E).
COMPATIBILITY
| DOS | UNIX | Windows | ANSI C | C++ only | |
|---|---|---|---|---|---|
| \b acosl | • | • | |||
| Real \b acos | • | • | • | • | |
| Complex \b acos | • | • | • | ||
| Complex \b cacos | • | • |