]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/cimag.3
Import of man-pages 1.70
[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 2002-07-28 "" "complex math routines"
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 .sp
12 .BI "float cimagf(float complex " z ");"
13 .sp
14 .BI "long double cimagl(long double complex " z ");"
15 .sp
16 Link with \-lm.
17 .SH DESCRIPTION
18 The cimag() function returns the imaginary part of the complex number z.
19 .LP
20 One has z = creal(z) + I*cimag(z).
21 .SH NOTE
22 gcc also supports __imag__. That is a GNU extension.
23 .SH "CONFORMING TO"
24 C99
25 .SH "SEE ALSO"
26 .BR cabs (3),
27 .BR creal (3),
28 .BR complex (5)