Go to the first, previous, next, last section, table of contents.
#include <math.h> double tan(double x);
This function computes the tangent of x (which should be given in radians).
The tangent of x. If the absolute value of x is finite but
greater than or equal to 2^63, the return value is 0 (since for
arguments that large each bit of the mantissa is more than Pi
).
If the value of x is infinite or NaN
, the return value is
NaN
and errno
is set to EDOM
.
ANSI, POSIX
Go to the first, previous, next, last section, table of contents.