OSDN Git Service

94f412f564b096b7460ae450959cedf76911cd81
[linuxjm/LDP_man-pages.git] / draft / 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 .\" Japanese Version Copyright (c) 1996 Kenji Kajiwara and Kentaro Ogawa
34 .\"         all rights reserved.
35 .\" Translated Sat, 13 Jul 1996 17:50:45 JST
36 .\"         by Kenji Kajiwara and Kentaro Ogawa
37 .\" Proof Reading: Takashi Yoshino
38 .\" Updated Tue Aug  5 23:16:48 JST 2003
39 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
40 .\" Updated 2008-09-14, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
41 .\"
42 .TH ATAN 3  2008-12-02 "" "Linux Programmer's Manual"
43 .\"O .SH NAME
44 .SH Ì¾Á°
45 .\"O atan, atanf, atanl \- arc tangent function
46 atan, atanf, atanl \- µÕÀµÀÜ¡Êarc tangent¡Ë´Ø¿ô
47 .\"O .SH SYNOPSIS
48 .SH ½ñ¼°
49 .nf
50 .B #include <math.h>
51 .sp
52 .BI "double atan(double " x );
53 .br
54 .BI "float atanf(float " x );
55 .br
56 .BI "long double atanl( long double " x );
57 .sp
58 .fi
59 .\"O Link with \fI\-lm\fP.
60 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
61 .sp
62 .in -4n
63 .\"O Feature Test Macro Requirements for glibc (see
64 .\"O .BR feature_test_macros (7)):
65 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
66 .RB ( feature_test_macros (7)
67 »²¾È):
68 .in
69 .sp
70 .ad l
71 .BR atanf (),
72 .BR atanl ():
73 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
74 .I cc\ -std=c99
75 .ad b
76 .\"O .SH DESCRIPTION
77 .SH ÀâÌÀ
78 .\"O The
79 .\"O .BR atan ()
80 .\"O function calculates the principal value of the arc tangent of \fIx\fP;
81 .\"O that is the value whose tangent is \fIx\fP.
82 .BR atan ()
83 \fIx\fP ¤ÎµÕÀµÀÜ¡Êarc tangent¡Ë¤Î¼çÃͤò·×»»¤¹¤ë¡£
84 ¤¹¤Ê¤ï¤Á¡¢
85 ¤½¤ÎÀµÀÜ¡Êtangent¡Ë¤¬ \fIx\fP ¤È¤Ê¤ë¤è¤¦¤ÊÃͤǤ¢¤ë¡£
86 .\"O .SH "RETURN VALUE"
87 .SH ÊÖ¤êÃÍ
88 .\"O On success, these functions return the principal value of the arc tangent of
89 .\"O .IR x
90 .\"O in radians; the return value is in the range [\-pi/2,\ pi/2].
91 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
92 .I x
93 ¤ÎµÕÀµÀܤμçÃͤò¥é¥¸¥¢¥óñ°Ì¤ÇÊÖ¤¹¡£
94 ÊÖ¤êÃͤϠ[\-pi/2,\ pi/2] ¤ÎÈϰϤȤʤ롣
95
96 .\"O If
97 .\"O .I x
98 .\"O is a NaN, a NaN is returned.
99 .I x
100 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
101
102 .\"O If
103 .\"O .I x
104 .\"O is +0 (\-0),
105 .\"O +0 (\-0) is returned.
106 .I x
107 ¤¬ +0 (\-0) ¤Î¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
108
109 .\"O If
110 .\"O .I x
111 .\"O is positive infinity (negative infinity), +pi/2 (\-pi/2) is returned.
112 .I x
113 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Î¾ì¹ç¡¢+pi/2 (\-pi/2) ¤¬ÊÖ¤µ¤ì¤ë¡£
114 .\"
115 .\" POSIX.1-2001 documents an optional range error for subnormal x;
116 .\" glibc 2.8 does not do this.
117 .\"O .SH ERRORS
118 .SH ¥¨¥é¡¼
119 .\"O No errors occur.
120 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
121 .\"O .SH "CONFORMING TO"
122 .SH ½àµò
123 C99, POSIX.1-2001.
124 .\"O The variant returning
125 .\"O .I double
126 .\"O also conforms to
127 .\"O SVr4, 4.3BSD, C89.
128 .I double
129 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
130 .\"O .SH "SEE ALSO"
131 .SH ´ØÏ¢¹àÌÜ
132 .BR acos (3),
133 .BR asin (3),
134 .BR atan2 (3),
135 .BR carg (3),
136 .BR catan (3),
137 .BR cos (3),
138 .BR sin (3),
139 .BR tan (3)