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 Thu Jul 24 01:37:31 JST 2003
7 .\" by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
10 .\"WORD: imaginary part 虚部
12 .TH CIMAG 3 2008-08-06 "" "Linux Programmer's Manual"
15 .\"O cimag, cimagf, cimagl \- get imaginary part of a complex number
16 cimag, cimagf, cimagl \- 複素数の虚部を取得する
19 .B #include <complex.h>
21 .BI "double cimag(double complex " z ");"
23 .BI "float cimagf(float complex " z ");"
25 .BI "long double cimagl(long double complex " z ");"
27 .\"O Link with \fI\-lm\fP.
33 .\"O function returns the imaginary part of the complex number
44 z = creal(z) + I * cimag(z)
48 .\"O These functions first appeared in glibc in version 2.1.
49 これらの関数は glibc バージョン 2.1 で初めて登場した。
50 .\"O .SH "CONFORMING TO"
55 .\"O gcc also supports __imag__.
56 .\"O That is a GNU extension.
57 gcc では __imag__ を使うこともできるが、