##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::atan

From cppreference.com
< cpp‎ | numeric‎ | math

Defined in header `<cmath>` |  |
float atan( float arg ); |  |
double atan( double arg ); |  |
long double atan( long double arg ); |  |
double atan( Integral arg ); |  | (since C++11)

Computes arc tangent of `arg`

### [edit] Parameters

arg | - | value of a floating-point or Integral type

### [edit] Return value

Arc tangent of `arg` in radians in the range of `[-π/2; π/2]` radians.

### [edit] See also

atan2 | arc tangent, using signs to determine quadrants (function) [edit]
asin | computes arc sine (arcsin(x)) (function) [edit]
acos | computes arc cosine (arccos(x)) (function) [edit]
tan | computes tangent (tan(x)) (function) [edit]
atan(std::complex) (C++11) | computes arc tangent of a complex number (arctan(z)) (function template) [edit]
atan(std::valarray) | applies the function std::atan to each element of valarray (function template) [edit]
C documentation for atan

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/math/atan&oldid=67138"