OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / original / man3 / atan.3
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>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2002-07-27 by Walter Harms
31 .\"     (walter.harms@informatik.uni-oldenburg.de)
32 .\"
33 .TH ATAN 3  2008-12-02 "" "Linux Programmer's Manual"
34 .SH NAME
35 atan, atanf, atanl \- arc tangent function
36 .SH SYNOPSIS
37 .nf
38 .B #include <math.h>
39 .sp
40 .BI "double atan(double " x );
41 .br
42 .BI "float atanf(float " x );
43 .br
44 .BI "long double atanl( long double " x );
45 .sp
46 .fi
47 Link with \fI\-lm\fP.
48 .sp
49 .in -4n
50 Feature Test Macro Requirements for glibc (see
51 .BR feature_test_macros (7)):
52 .in
53 .sp
54 .ad l
55 .BR atanf (),
56 .BR atanl ():
57 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
58 .I cc\ -std=c99
59 .ad b
60 .SH DESCRIPTION
61 The
62 .BR atan ()
63 function calculates the principal value of the arc tangent of \fIx\fP;
64 that is the value whose tangent is \fIx\fP.
65 .SH "RETURN VALUE"
66 On success, these functions return the principal value of the arc tangent of
67 .IR x
68 in radians; the return value is in the range [\-pi/2,\ pi/2].
69
70 If
71 .I x
72 is a NaN, a NaN is returned.
73
74 If
75 .I x
76 is +0 (\-0),
77 +0 (\-0) is returned.
78
79 If
80 .I x
81 is positive infinity (negative infinity), +pi/2 (\-pi/2) is returned.
82 .\"
83 .\" POSIX.1-2001 documents an optional range error for subnormal x;
84 .\" glibc 2.8 does not do this.
85 .SH ERRORS
86 No errors occur.
87 .SH "CONFORMING TO"
88 C99, POSIX.1-2001.
89 The variant returning
90 .I double
91 also conforms to
92 SVr4, 4.3BSD, C89.
93 .SH "SEE ALSO"
94 .BR acos (3),
95 .BR asin (3),
96 .BR atan2 (3),
97 .BR carg (3),
98 .BR catan (3),
99 .BR cos (3),
100 .BR sin (3),
101 .BR tan (3)