File: carg.3

package info (click to toggle)
manpages-ja 0.5.0.0.20050315-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,620 kB
  • ctags: 4
  • sloc: sh: 12,675; perl: 157; makefile: 106
file content (43 lines) | stat: -rw-r--r-- 1,236 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
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
.\" Distributed under GPL
.\"
.\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated Thu Jul 24 01:30:12 JST 2003
.\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\"WORD:	argument	(˺ɸ)г
.\"WORD:	coordinates	ɸ
.\"WORD:	rectangular coordinates	ľɸ
.\"WORD:	polar coordinates	˺ɸ
.\"
.TH CARG 3 2002-07-28 "" "complex math routines"
.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
\-lm ǥ󥯤롣
.SH 
ʣǿ 2Ĥμ¿ͤʤɸɽȤǤ롣
ľɸȤäơ z = x+I*y Ƚ񤯤ȤǤ롣
ΤȤ x = creal(z), y = cimag(z) Ǥ롣
.LP
ޤ˺ɸȤäơ z = r*cexp(I*a) Ƚ񤯤ȤǤ롣
r = cabs(z) ϡȾ¡סַפȸƤФ졢 z ͤǤ롣
a = carg(z) ϡְѡפȤ z гѤǤ롣
.LP
δط: carg(z) = atan(creal(z) / cimag(z))
.SH ֤
֤ͤ [-pi,pi] ϰϤǤ롣
.SH 
C99
.SH Ϣ
.BR cabs (3),
.BR complex (5)