]>
Commit | Line | Data |
---|---|---|
a1eaacb1 | 1 | '\" t |
fea681da | 2 | .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de) |
2297bf0e | 3 | .\" |
95fb8859 | 4 | .\" SPDX-License-Identifier: GPL-1.0-or-later |
fea681da | 5 | .\" |
4c1c5274 | 6 | .TH cimag 3 (date) "Linux man-pages (unreleased)" |
fea681da MK |
7 | .SH NAME |
8 | cimag, cimagf, cimagl \- get imaginary part of a complex number | |
2af19291 AC |
9 | .SH LIBRARY |
10 | Math library | |
8fc3b2cf | 11 | .RI ( libm ", " \-lm ) |
fea681da | 12 | .SH SYNOPSIS |
c7db92b9 | 13 | .nf |
fea681da | 14 | .B #include <complex.h> |
68e4db0a | 15 | .PP |
1ae6b2c7 AC |
16 | .BI "double cimag(double complex " z ); |
17 | .BI "float cimagf(float complex " z ); | |
18 | .BI "long double cimagl(long double complex " z ); | |
c7db92b9 | 19 | .fi |
fea681da | 20 | .SH DESCRIPTION |
5600f73a | 21 | These functions return the imaginary part of the complex number |
3b8affde | 22 | .IR z . |
dd3568a1 | 23 | .PP |
3b8affde | 24 | One has: |
207050fa | 25 | .PP |
1ae6b2c7 AC |
26 | .in +4n |
27 | .EX | |
28 | z = creal(z) + I * cimag(z) | |
29 | .EE | |
30 | .in | |
e3543fbb | 31 | .SH ATTRIBUTES |
2724812b MK |
32 | For an explanation of the terms used in this section, see |
33 | .BR attributes (7). | |
34 | .TS | |
35 | allbox; | |
c466875e | 36 | lbx lb lb |
2724812b MK |
37 | l l l. |
38 | Interface Attribute Value | |
39 | T{ | |
9e54434e BR |
40 | .na |
41 | .nh | |
e3543fbb PH |
42 | .BR cimag (), |
43 | .BR cimagf (), | |
e3543fbb | 44 | .BR cimagl () |
2724812b MK |
45 | T} Thread safety MT-Safe |
46 | .TE | |
c466875e | 47 | .sp 1 |
196224f7 | 48 | .SH VERSIONS |
4131356c | 49 | GCC also supports __imag__. |
19c98696 | 50 | That is a GNU extension. |
4131356c AC |
51 | .SH STANDARDS |
52 | C11, POSIX.1-2008. | |
53 | .SH HISTORY | |
54 | glibc 2.1. | |
55 | C99, POSIX.1-2001. | |
47297adb | 56 | .SH SEE ALSO |
fea681da MK |
57 | .BR cabs (3), |
58 | .BR creal (3), | |
a8bda636 | 59 | .BR complex (7) |