acos

Overview :

The "acos" function is used for calcution of the arc cosine value of a given input.

Syntax :
double acos(double x);
Description :

The "acos" function accepts 1 parameters

  • x -> The x is the number whose arc cosine value is to be found

"acos" function return the arc cosine value of a number.

Example :
#include <stdio.h>
 #include <math.h>
 #include<conio.h>

 int main()
 {
    double x,acos_value;
	clrscr();
	printf("\nEnter the number : ");
	scanf("%lf",&x);

    acos_value = acos(x);
    printf("The arc cosine value is %lf\n", acos_value);
    getch();
    return 0;
}

Comments

comments powered by Disqus