File: carg.3

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (62 lines) | stat: -rw-r--r-- 1,464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
.\" Distributed under GPL
.\"
.\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated 2003-07-24, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\" Updated 2005-10-02, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\"WORD:	argument	(˺ɸ)г
.\"WORD:	coordinates	ɸ
.\"WORD:	rectangular coordinates	ľɸ
.\"WORD:	polar coordinates	˺ɸ
.\"
.TH CARG 3 2008-08-06 "" "Linux Programmer's Manual"
.SH ̾
carg, cargf, cargl \- ʣǿгѤ׻
.SH 
.B #include <complex.h>
.sp
.BI "double carg(double complex " z ");"
.br
.BI "float cargf(float complex " z ");"
.br
.BI "long double cargl(long double complex " z ");"
.sp
\fI\-lm\fP ǥ󥯤롣
.SH 
ʣǿ 2Ĥμ¿ͤʤɸɽȤǤ롣
ľɸȤȡʲΤ褦˽񤯤ȤǤ롣

.nf
    z = x + I * y
.fi

ǡ\fIx\ =\ creal(z)\fP, \fIy\ =\ cimag(z)\fP Ǥ롣
.LP
ޤ˺ɸȤȡʲΤ褦˽񤯤ȤǤ롣
.nf

    z = r * cexp(I * a)

.fi
ǡ
\fIr\ =\ cabs(z)\fP ϡȾ¡סַפǤꡢ
\fIz\fP ͤǤ롣
\fIa\ =\ carg(z)\fP ϡְѡפǤꡢ
\fIz\fP гѤǤ롣
.LP
δط:
.nf

    tan(carg(z)) = cimag(z) / creal(z)
.fi
.SH ֤
֤ͤ [\-pi,pi] ϰϤǤ롣
.SH С
δؿ glibc С 2.1 ǽо줷
.SH 
C99.
.SH Ϣ
.BR cabs (3),
.BR complex (7)