Tan Function
Syntax:
float tanf(float arg); double tan(double arg); long double tanl(long double arg);
Example:
#include <math.h>
#include <stdio.h>
int main()
{
double x = -2.0;
do {
printf("Tangent of %f is %f.\n", x, tan(x));
x += 0.2;
} while(x<=2.0);
return 0;
}
Back