C Reference function tan()
Usage of tan():
double tan(double x);
Parameters:
There is no range limit on the argument.
Return value:
There is no range limit on the return value.
Source code example of tan():
#include<stdio.h>
#include<math.h>
#define PI 3.14159265
main()
{
double input, output;
input = 50.0;
output = tan (input*PI/180);
printf ("Tangent of %lf degrees is %lf\n", input, output);
return 0;
}
Output of the tan example program above:
Tangent of 50.000000 degrees is 1.191754
This entry was posted in C Reference math.h Functions.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Tweet This! or use
to share this post with others.