tan

Computes the tangent of the specified argument.

Library:LibC
Classification:ANSI
Service:Math

Syntax

  #include <math.h> 
   
  double tan (
     double   x);
  

Parameters

x

(IN) Specifies the argument whose tangent is to be computed.

Return Values

If successful, returns the tangent value. When an error has occurred, errno is set.

Remarks

The tan function computes the tangent of x (measured in radians). A large magnitude argument can yield a result with little or no significance.

See Also