math.h
Función tan ANSI C
double tan(double x);
Calcula la tangente de x (medido en radianes).
Valor de retorno:
La función tan retorna la tangente, en radianes.
Ejemplo:
#include <stdio.h>
#include <math.h>
int main()
{
double x = 3.1416/3.0;
printf( "tan( %f ) = %f\n", x, tan(x) );
return 0;
}