1atan(3)                    Library Functions Manual                    atan(3)
2
3
4

NAME

6       atan, atanf, atanl - arc tangent function
7

LIBRARY

9       Math library (libm, -lm)
10

SYNOPSIS

12       #include <math.h>
13
14       double atan(double x);
15       float atanf(float x);
16       long double atanl(long double x);
17
18   Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
19
20       atanf(), atanl():
21           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
22               || /* Since glibc 2.19: */ _DEFAULT_SOURCE
23               || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
24

DESCRIPTION

26       These  functions calculate the principal value of the arc tangent of x;
27       that is the value whose tangent is x.
28

RETURN VALUE

30       On success, these functions return the principal value of the arc  tan‐
31       gent of x in radians; the return value is in the range [-pi/2, pi/2].
32
33       If x is a NaN, a NaN is returned.
34
35       If x is +0 (-0), +0 (-0) is returned.
36
37       If  x  is  positive  infinity (negative infinity), +pi/2 (-pi/2) is re‐
38       turned.
39

ERRORS

41       No errors occur.
42

ATTRIBUTES

44       For an  explanation  of  the  terms  used  in  this  section,  see  at‐
45       tributes(7).
46
47       ┌────────────────────────────────────────────┬───────────────┬─────────┐
48Interface                                   Attribute     Value   
49       ├────────────────────────────────────────────┼───────────────┼─────────┤
50atan(), atanf(), atanl()                    │ Thread safety │ MT-Safe │
51       └────────────────────────────────────────────┴───────────────┴─────────┘
52

STANDARDS

54       C11, POSIX.1-2008.
55

HISTORY

57       C99, POSIX.1-2001.
58
59       The variant returning double also conforms to SVr4, 4.3BSD, C89.
60

SEE ALSO

62       acos(3), asin(3), atan2(3), carg(3), catan(3), cos(3), sin(3), tan(3)
63
64
65
66Linux man-pages 6.05              2023-07-20                           atan(3)
Impressum