Name
      
      atan, atanf, atanl 
      
      
      - arc tangent function
      
      
      
      
         
         Library
      
      
      
      
      libm.lib
      
      
      
      
         
         Synopsis
      
      
      
      
      
      
      
      
      
         
            |   | 
            
                long double
               
               
               atan (long double x); 
               
               Sh RETURN VALUES
               The
               
               
                atan,
               
               
                atanf,
               and the
               
               
                atanl
               functions return the arc tangent in the range
               
               
               -words
               
               
               [-pi/2, +pi/2]
               
               
                
               
               radians.
               
               
               
               
               
             | 
         
      
      
         
         Detailed description
      
      
      The
      
      
       atan
      and
      
      
       atanf
      functions compute the principal value of the arc tangent of
      
      
       x.
      The function
      
      
       atanl
      is just an alias to the function
      
      
       atan.
      
      
      
      
         
         Examples
      
      
      
      
      #include <math.h>
int main( )
{
   double x = 1;
   double y = atan( x );
   printf( "atan(%f) = %f\n", x, y );
   y = atanf( x );
   printf( "atanf(%f) = %f\n", x, y );
   y = atanl( x );
   printf( "atanl(%f) = %f\n", x, y ); 
}
         
      
      
      
      
         Output
         
         
         
      
atan ( 1.000000 ) = 0.7853981
atanf (1.000000 ) = 0.7853981
atanl(1.000000 ) = 0.7853981
         
      
      
      
      
      
      
         
         See also
      
      
      
      
      acos,
      
      
      asin,
      
      
      atan2,
      
      
      cos,
      
      
      cosh,
      
      
      math,
      
      
      sin,
      
      
      sinh,
      
      
      tan,
      
      
      tanh
      
      
      Feedback
For additional information or queries on this page send feedback	
      
      
         
         
         
            
               | 
                   © 2005-2007 Nokia  
                | 
                
                     
                |