The C ACOS Function is a C Math Library Function. It used to calculate Trigonometry Arc Cosine value for the user-specified expression or value. The syntax of the acos in C Programming is
double acos(double number);
ACOS Function in C Example
The acos Function in the math library helps you to find the trigonometry Arc Cosine for the specified values. This program, ask the user to enter his/her own value, and then it will find the arc cosine value of the user entered one
TIP: Please refer to C COS Function article in C Programming to calculate the Cosine value of a specified program expression.
/* Example for ACOS Function in C Programming */ #include <stdio.h> #include <math.h> int main() { double acosValue, number; printf(" Please Enter the Floating Value between -1 to 1 : "); scanf("%lf", &number); acosValue = acos(number); printf("\n The Arc Cosine value of %lf = %f ", number, acosValue); return 0; }