tan

Calculates the tangent.

double tan (double x);

Required Header
<math.h>

Return Value

This function returns the tangent of a double in radians.

Parameters

x

  The value to be converted

Remarks

The tan function calculates the tangent of x to 15 digits of precision.

Mathematics

See Also    asin, acos, atan, atan2, sin, cos, sinh, cosh, tanh, cot