cimag.3 (0d8d6786) cimag.3 (a9230a7b)
1.\" $NetBSD: cimag.3,v 1.3 2010/09/15 18:40:27 wiz Exp $
1.\" $NetBSD: cimag.3,v 1.4 2012/12/27 21:34:10 wiz Exp $
2.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
2.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
3.TH "CIMAG" 3P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
4.\" cimag
5.SH NAME
6cimag, cimagf \- complex imaginary functions
7.SH SYNOPSIS
8.LP
9\fB#include <complex.h>
10.br
11.sp
12double cimag(double complex\fP \fIz\fP\fB);
13.br
14float cimagf(float complex\fP \fIz\fP\fB);
15.br
16long double cimagl(long double complex\fP \fIz\fP\fB);
17.br
18\fP
19.SH DESCRIPTION
20.LP
21These functions compute the imaginary part of \fIz\fP.
22.SH RETURN VALUE
23.LP
3.Dd December 27, 2012
4.Dt CIMAG 3
5.Os
6.Sh NAME
7.Nm cimag ,
8.Nm cimagf ,
9.Nm cimagl
10.Nd complex imaginary functions
11.Sh SYNOPSIS
12.In complex.h
13.Ft double
14.Fn cimag "double complex z"
15.Ft float
16.Fn cimagf "float complex z"
17.Ft long double
18.Fn cimagl "long double complex z"
19.Sh DESCRIPTION
20These functions compute the imaginary part of
21.Ar z .
22.Sh RETURN VALUES
24These functions return the imaginary part value (as a real).
23These functions return the imaginary part value (as a real).
25.SH ERRORS
26.LP
24.Sh ERRORS
27No errors are defined.
25No errors are defined.
28.LP
29\fIThe following sections are informative.\fP
30.SH EXAMPLES
31.LP
32None.
33.SH APPLICATION USAGE
34.LP
35For a variable \fIz\fP of complex type:
36.sp
37.RS
38.nf
39
40\fBz == creal(z) + cimag(z)*I
41\fP
42.fi
43.RE
44.SH RATIONALE
45.LP
46None.
47.SH FUTURE DIRECTIONS
48.LP
49None.
50.SH SEE ALSO
51.LP
52\fIcarg\fP(), \fIconj\fP(), \fIcproj\fP(), \fIcreal\fP(), the
53Base Definitions volume of IEEE\ Std\ 1003.1-2001, \fI<complex.h>\fP
54.SH COPYRIGHT
26.Sh APPLICATION USAGE
27For a variable
28.Ar z
29of complex type:
30.Bd -literal -offset indent
31z = creal(z) + cimag(z)*I
32.Ed
33.Sh SEE ALSO
34.Xr carg 3 ,
35.Xr conj 3 ,
36.Xr cproj 3 ,
37.Xr creal 3 ,
38.St -p1003.1-2001
39.Aq Pa complex.h
40.Sh COPYRIGHT
55Portions of this text are reprinted and reproduced in electronic form
56from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
57-- Portable Operating System Interface (POSIX), The Open Group Base
58Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
41Portions of this text are reprinted and reproduced in electronic form
42from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
43-- Portable Operating System Interface (POSIX), The Open Group Base
44Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
59Electrical and Electronics Engineers, Inc and The Open Group. In the
45Electrical and Electronics Engineers, Inc and The Open Group.
46In the
60event of any discrepancy between this version and the original IEEE and
61The Open Group Standard, the original IEEE and The Open Group Standard
47event of any discrepancy between this version and the original IEEE and
48The Open Group Standard, the original IEEE and The Open Group Standard
62is the referee document. The original Standard can be obtained online at
49is the referee document.
50The original Standard can be obtained online at
63http://www.opengroup.org/unix/online.html .
51http://www.opengroup.org/unix/online.html .