atan
arc tangent function of one variable
You're viewing an older version of this page (#3229). View the current version.
NAME
atan catan
INTERFACE
#include <math.h> double atan ( double x ) long atanl ( long double x ) float atanf ( float x )
#include <complex.h> complex atan(complex x) double complex catan(double complex x) float complex catanf(float complex x) long double complex catanl(long double complex x)
DESCRIPTION
The atan function computes the principal value of the arc tangent of x, returning a value in the range The arc tangent is often also donated as
.
The complex inverse tangent is defined by
Example 1
#include <stdio.h>
#include <math.h>
int main(void)
{
double result, x=0.5;
result = atan(x);
printf("The arc sin of %lf is %lf\n", x, result);
}SPECIAL VALUES
atan ( ±0 ) returns ±0. atan ( ±∞ ) returns ±pi/2
SEE ALSO
acos , asin, atan2, cos, cosh, sin, sinh, tan, tanh
STANDARDS
The atan function conforms to ISO/IEC 9899:1999(E).
COMPATIBILITY
<table class="compat"> <tr><th></th><th>DOS</th><th>UNIX</th><th>Windows</th><th>ANSI C</th><th>C++ only</th></tr> <tr><td>atanl</td><td>•</td><td></td><td>•</td><td></td><td></td></tr> <tr><td>Real atan</td><td>•</td><td>•</td><td>•</td><td>•</td><td></td></tr> <tr><td>Complex atan</td><td>•</td><td></td><td>•</td><td></td><td>•</td></tr> <tr><td>Complex catan</td><td></td><td>•</td><td></td><td></td><td>•</td></tr> </table>