Definition | #include <math.h> double acos(double x); These functions are the inverse function of the corresponding | |
Return val. | arc cosine(x) | |
a floating-point number of type | ||
0 | for values outside the interval [-1.0, +1.0]. | |
Example | The following program prints the corresponding arc cosine values for input values in the interval [0.0, 1.0]: #include <math.h> #include <stdio.h> int main(void) { double x; for(x = 0.0; x < 1.0; x = x + 0.1) printf("x = %g : acos(%g) = %g\n", x, x, acos(x)); return 0; } | |
See also | cos, sin, tan, asin, atan, atan2 |