1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
4 .\" Japanese Version Copyright (c) 2003 Akihiro MOTOKI
5 .\" all rights reserved.
6 .\" Translated 2003-07-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
7 .\" Updated 2005-10-02, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
9 .\"WORD: argument (¶ËºÂɸ¤Î)ÊгÑ
10 .\"WORD: coordinates ºÂɸ
11 .\"WORD: rectangular coordinates ľ¸òºÂɸ
12 .\"WORD: polar coordinates ¶ËºÂɸ
14 .TH CARG 3 2008-08-06 "" "Linux Programmer's Manual"
17 .\"O carg, cargf, cargl \- calculate the argument
18 carg, cargf, cargl \- Ê£ÁÇ¿ô¤ÎÊгѤò·×»»¤¹¤ë
21 .B #include <complex.h>
23 .BI "double carg(double complex " z ");"
25 .BI "float cargf(float complex " z ");"
27 .BI "long double cargl(long double complex " z ");"
29 .\"O Link with \fI\-lm\fP.
30 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
33 .\"O A complex number can be described by two real coordinates.
34 .\"O One may use rectangular coordinates and gets
40 .\"O where \fIx\ =\ creal(z)\fP and \fIy\ =\ cimag(z)\fP.
41 Ê£ÁÇ¿ô¤Ï 2¤Ä¤Î¼Â¿ôÃͤ«¤é¤Ê¤ëºÂɸ¤Çɽ¤¹¤³¤È¤¬¤Ç¤¤ë¡£
42 ľ¸òºÂɸ¤ò»È¤¦¤È¡¢°Ê²¼¤Î¤è¤¦¤Ë½ñ¤¯¤³¤È¤¬¤Ç¤¤ë¡£
48 ¤³¤³¤Ç¡¢\fIx\ =\ creal(z)\fP, \fIy\ =\ cimag(z)\fP ¤Ç¤¢¤ë¡£
50 .\"O Or one may use polar coordinates and gets
53 .\"O z = r * cexp(I * a)
56 .\"O where \fIr\ =\ cabs(z)\fP
57 .\"O is the "radius", the "modulus", the absolute value of \fIz\fP, and
58 .\"O \fIa\ =\ carg(z)\fP
59 .\"O is the "phase angle", the argument of \fIz\fP.
60 ¤Þ¤¿¡¢¶ËºÂɸ¤ò»È¤¦¤È¡¢°Ê²¼¤Î¤è¤¦¤Ë½ñ¤¯¤³¤È¤¬¤Ç¤¤ë¡£
67 \fIr\ =\ cabs(z)\fP ¤Ï¡ÖȾ·Â¡×¡¢¡Ö·¸¿ô¡×¤Ç¤¢¤ê¡¢
68 \fIz\fP ¤ÎÀäÂÐÃͤǤ¢¤ë¡£
69 \fIa\ =\ carg(z)\fP ¤Ï¡Ö°ÌÁê³Ñ¡×¤Ç¤¢¤ê¡¢
70 \fIz\fP ¤ÎÊгѤǤ¢¤ë¡£
76 tan(carg(z)) = cimag(z) / creal(z)
78 .\"O .SH "RETURN VALUE"
80 .\"O The return value is the range of [\-pi,pi].
81 ÊÖ¤êÃÍ¤Ï [\-pi,pi] ¤ÎÈϰϤǤ¢¤ë¡£
84 .\"O These functions first appeared in glibc in version 2.1.
85 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc ¥Ð¡¼¥¸¥ç¥ó 2.1 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
86 .\"O .SH "CONFORMING TO"