]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/cimag.3
getent.1, intro.1, time.1, _exit.2, _syscall.2, accept.2, access.2, acct.2, adjtimex...
[thirdparty/man-pages.git] / man3 / cimag.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL
3 .\"
4 .TH CIMAG 3 2008-08-11 "" "Linux Programmer's Manual"
5 .SH NAME
6 cimag, cimagf, cimagl \- get imaginary part of a complex number
7 .SH SYNOPSIS
8 .B #include <complex.h>
9 .sp
10 .BI "double cimag(double complex " z ");"
11 .br
12 .BI "float cimagf(float complex " z ");"
13 .br
14 .BI "long double cimagl(long double complex " z ");"
15 .sp
16 Link with \fI\-lm\fP.
17 .SH DESCRIPTION
18 The
19 .BR cimag ()
20 function returns the imaginary part of the complex number
21 .IR z .
22 .LP
23 One has:
24 .nf
25
26 z = creal(z) + I * cimag(z)
27 .fi
28 .SH VERSIONS
29 These functions first appeared in glibc in version 2.1.
30 .SH CONFORMING TO
31 C99.
32 .SH NOTES
33 gcc also supports __imag__.
34 That is a GNU extension.
35 .SH SEE ALSO
36 .BR cabs (3),
37 .BR creal (3),
38 .BR complex (7)