tan

Overview :

The "tan" function is used for calcution of the tangent value of a given input.

Syntax :
double tan(double x);
Description :

The "tan" function accepts 1 parameters

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

"tan" function return the tangent value of a number.

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

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

    tan_value = tan(x);
    printf("The tan value is %lf\n", tan_value);
    getch();
    return 0;
}

Comments

comments powered by Disqus