OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / atan2.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-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
41 .\"
42 .TH ATAN2 3  2008-11-20 "" "Linux Programmer's Manual"
43 .SH Ì¾Á°
44 atan2, atan2f, atan2l \- Æó¤Ä¤ÎÊÑ¿ô¤ËÂФ¹¤ëµÕÀµÀÜ¡Êarc tangent¡Ë´Ø¿ô
45 .SH ½ñ¼°
46 .nf
47 .B #include <math.h>
48
49 .BI "double atan2(double " y ", double " x );
50 .BI "float atan2f(float " y ", float " x );
51 .BI "long double atan2l(long double " y ", long double " x );
52
53 .fi
54 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
55 .sp
56 .in -4n
57 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
58 .RB ( feature_test_macros (7)
59 »²¾È):
60 .in
61 .sp
62 .ad l
63 .BR atan2f (),
64 .BR atan2l ():
65 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
66 .I cc\ -std=c99
67 .ad b
68 .SH ÀâÌÀ
69 .BR atan2 ()
70 ´Ø¿ô¤Ï
71 .I y/x
72 ¤ÎµÕÀµÀÜ (arg tangent) ¤Î¼çÃͤò·×»»¤¹¤ë¡£
73 Æó¤Ä¤Î°ú¤­¿ô¤ÎÉä¹æ¤Ï·ë²Ì¤Î¾Ý¸Â¤ò·èÄꤹ¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¡£
74 .SH ÊÖ¤êÃÍ
75 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï
76 .I y/x
77 ¤ÎµÕÀµÀܤμçÃͤò¥é¥¸¥¢¥óñ°Ì¤ÇÊÖ¤¹¡£
78 ÊÖ¤êÃͤϠ[\-pi,\ pi] ¤ÎÈϰϤȤʤ롣
79
80 .I y
81 ¤¬ +0 (\-0) ¤Ç
82 .I x
83 ¤¬ 0 Ì¤Ëþ¤Î¾ì¹ç¡¢+pi (\-pi) ¤¬ÊÖ¤µ¤ì¤ë¡£
84
85 .I y
86 ¤¬ +0 (\-0) ¤Ç
87 .I x
88 ¤¬ 0 ¤è¤êÂ礭¤¤¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
89
90 .I y
91 ¤¬ 0 Ì¤Ëþ¤Ç
92 .I x
93 ¤¬ +0 ¤« \-0 ¤Î¾ì¹ç¡¢\-pi/2 ¤¬ÊÖ¤µ¤ì¤ë¡£
94
95 .I y
96 ¤¬ 0 ¤è¤êÂ礭¤¯
97 .I x
98 ¤¬ +0 ¤« \-0 ¤Î¾ì¹ç¡¢pi/2 ¤¬ÊÖ¤µ¤ì¤ë¡£
99
100 .\" POSIX.1 says:
101 .\" If
102 .\" .I x
103 .\" is 0, a pole error shall not occur.
104 .\"
105 .I x
106 ¤«
107 .I y
108 ¤Î¤¤¤º¤«¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
109
110 .\" POSIX.1 says:
111 .\" If  the  result  underflows, a range error may occur and
112 .\" .I y/x
113 .\" should be returned.
114 .\"
115 .I y
116 ¤¬ +0 (\-0) ¤Ç
117 .I x
118 ¤¬ \-0 ¤Î¾ì¹ç¡¢+pi (\-pi) ¤¬ÊÖ¤µ¤ì¤ë¡£
119
120 .I y
121 ¤¬ +0 (\-0) ¤Ç
122 .I x
123 ¤¬ +0 ¤Î¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
124
125 .I y
126 ¤¬ 0 ¤è¤êÂ礭¤¤ (¾®¤µ¤¤) Í­¸ÂÃͤÇ
127 .I x
128 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+pi (\-pi) ¤¬ÊÖ¤µ¤ì¤ë¡£
129
130 .I y
131 ¤¬ 0 ¤è¤êÂ礭¤¤ (¾®¤µ¤¤) Í­¸ÂÃͤÇ
132 .I x
133 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
134
135 .I y
136 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Ç
137 .I x
138 ¤¬Í­¸ÂÃͤξì¹ç¡¢pi/2 (\-pi/2) ¤¬ÊÖ¤µ¤ì¤ë¡£
139
140 .I y
141 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Ç
142 .I x
143 ¤¬Éé¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+3*pi/4 (-3*pi/4) ¤¬ÊÖ¤µ¤ì¤ë¡£
144
145 .I y
146 ¤¬Àµ¤Î̵¸ÂÂç (Éé¤Î̵¸ÂÂç) ¤Ç
147 .I x
148 ¤¬Àµ¤Î̵¸ÂÂç¤Î¾ì¹ç¡¢+pi/4 (-pi/4) ¤¬ÊÖ¤µ¤ì¤ë¡£
149 .\"
150 .\" POSIX.1 says:
151 .\" If both arguments are 0, a domain error shall not occur.
152 .SH ¥¨¥é¡¼
153 ¥¨¥é¡¼¤ÏȯÀ¸¤·¤Ê¤¤¡£
154 .\" POSIX.1 documents an optional underflow error
155 .\" glibc 2.8 does not do this.
156 .SH ½àµò
157 C99, POSIX.1-2001.
158 .I double
159 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
160 .SH ´ØÏ¢¹àÌÜ
161 .BR acos (3),
162 .BR asin (3),
163 .BR atan (3),
164 .BR carg (3),
165 .BR cos (3),
166 .BR sin (3),
167 .BR tan (3)