tan

Computes the tangent of the specified argument

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Mathematical Computation

Syntax

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

Parameters

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

Return Values

The tan function 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

atan, atan2, cos, sin, tanh

Example

  #include <math.h>  
  #include <stdio.h> 
    
  main ()  
  {  
     printf ("%f\n", tan (.5) );  
  }
  

produces the following:

  0.546302