1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .\" References consulted:
8 .\" Linux libc source code
9 .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
11 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
12 .\" Modified 2002-07-27 by Walter Harms
13 .\" (walter.harms@informatik.uni-oldenburg.de)
15 .TH atan 3 (date) "Linux man-pages (unreleased)"
17 atan, atanf, atanl \- arc tangent function
20 .RI ( libm ", " \-lm )
25 .BI "double atan(double " x );
26 .BI "float atanf(float " x );
27 .BI "long double atanl(long double " x );
31 Feature Test Macro Requirements for glibc (see
32 .BR feature_test_macros (7)):
38 _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
39 || /* Since glibc 2.19: */ _DEFAULT_SOURCE
40 || /* Glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
43 These functions calculate the principal value of the arc tangent of
45 that is the value whose tangent is
48 On success, these functions return the principal value of the arc tangent of
50 in radians; the return value is in the range [\-pi/2,\ pi/2].
54 is a NaN, a NaN is returned.
63 is positive infinity (negative infinity), +pi/2 (\-pi/2) is returned.
65 .\" POSIX.1-2001 documents an optional range error for subnormal x;
66 .\" glibc 2.8 does not do this.
70 For an explanation of the terms used in this section, see
78 Interface Attribute Value
83 T} Thread safety MT-Safe
89 C99, POSIX.1-2001, POSIX.1-2008.