1ATAN(3) Linux Programmer's Manual ATAN(3)
2
3
4
6 atan, atanf, atanl - arc tangent function
7
9 #include <math.h>
10
11 double atan(double x);
12 float atanf(float x);
13 long double atanl( long double x);
14
15 Link with -lm.
16
17 Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
18
19 atanf(), atanl():
20 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 600 ||
21 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L;
22 or cc -std=c99
23
25 The atan() function calculates the principal value of the arc tangent
26 of x; that is the value whose tangent is x.
27
29 On success, these functions return the principal value of the arc tan‐
30 gent of x in radians; the return value is in the range [-pi/2, pi/2].
31
32 If x is a NaN, a NaN is returned.
33
34 If x is +0 (-0), +0 (-0) is returned.
35
36 If x is positive infinity (negative infinity), +pi/2 (-pi/2) is
37 returned.
38
40 No errors occur.
41
43 C99, POSIX.1-2001. The variant returning double also conforms to SVr4,
44 4.3BSD, C89.
45
47 acos(3), asin(3), atan2(3), carg(3), catan(3), cos(3), sin(3), tan(3)
48
50 This page is part of release 3.53 of the Linux man-pages project. A
51 description of the project, and information about reporting bugs, can
52 be found at http://www.kernel.org/doc/man-pages/.
53
54
55
56 2010-09-20 ATAN(3)