This function is compatible with the following targets:
|
|
#include <math.h>
double acos(double x);
float acosf(float);
long double acosl(long double);Parameters:
Parameters for this function are:
This function computes the arc values of cosine, sine, and tangent.
The function acos() may set errno to EDOM if the argument is not in the range of -1 to +1. See "Floating point error testing.," for information on newer error testing procedures.
See "Example of acos(), asin(), atan(), atan2() usage." for example usage.
Return:
acos() returns the arccosine of the argument x in radians. If the argument to acos() is not in the range of -1 to +1, the global variable errno may be set to EDOM and returns 0. See "Floating point error testing.," for information on newer error testing procedures.