tan
Computes the tangent of the specified argument
#include <math.h>
double tan (
double x);
The tan function returns the tangent value. When an error has occurred, errno is set.
The tan function computes the tangent of x (measured in radians). A large magnitude argument can yield a result with little or no significance.
#include <math.h> #include <stdio.h> main () { printf ("%f\n", tan (.5) ); }
produces the following:
0.546302