atan [C++ Reference]
Keywords: c,math,atan
Date: 2009-03-19T23:42:03-0700

[[atan]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## atan

Syntax:

        #include <cmath>
        double atan( double arg );

The function atan() returns the arc tangent of arg, which will be in the range [-pi/2, +pi/2].

C++ also provides the following overloaded forms:

        #include <cmath>
        float atan( float arg ); // same as atanf() in C99
        long double atan( long double arg ); // same as atanl() in C99

Related Topics: acos, asin, atan2, cos, cosh, sin, sinh, tan, tanh

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •