]>
Commit | Line | Data |
---|---|---|
fea681da | 1 | .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de) |
2297bf0e | 2 | .\" |
95fb8859 | 3 | .\" SPDX-License-Identifier: GPL-1.0-or-later |
fea681da | 4 | .\" |
1ae6b2c7 | 5 | .TH CREAL 3 2021-03-22 GNU "Linux Programmer's Manual" |
fea681da MK |
6 | .SH NAME |
7 | creal, crealf, creall \- get real part of a complex number | |
2af19291 AC |
8 | .SH LIBRARY |
9 | Math library | |
8fc3b2cf | 10 | .RI ( libm ", " \-lm ) |
fea681da | 11 | .SH SYNOPSIS |
c7db92b9 | 12 | .nf |
fea681da | 13 | .B #include <complex.h> |
68e4db0a | 14 | .PP |
fea681da | 15 | .BI "double creal(double complex " z ); |
fea681da | 16 | .BI "float crealf(float complex " z ); |
fea681da | 17 | .BI "long double creall(long double complex " z ); |
c7db92b9 | 18 | .fi |
fea681da | 19 | .SH DESCRIPTION |
5600f73a | 20 | These functions return the real part of the complex number |
e5056894 | 21 | .IR z . |
dd3568a1 | 22 | .PP |
658670de | 23 | One has: |
207050fa | 24 | .PP |
658670de | 25 | .nf |
658670de MK |
26 | z = creal(z) + I * cimag(z) |
27 | .fi | |
f0d7ce1d MK |
28 | .SH VERSIONS |
29 | These functions first appeared in glibc in version 2.1. | |
9f4658a7 | 30 | .SH ATTRIBUTES |
d5b7e514 MK |
31 | For an explanation of the terms used in this section, see |
32 | .BR attributes (7). | |
c466875e MK |
33 | .ad l |
34 | .nh | |
d5b7e514 MK |
35 | .TS |
36 | allbox; | |
c466875e | 37 | lbx lb lb |
d5b7e514 MK |
38 | l l l. |
39 | Interface Attribute Value | |
40 | T{ | |
9f4658a7 PH |
41 | .BR creal (), |
42 | .BR crealf (), | |
9f4658a7 | 43 | .BR creall () |
d5b7e514 MK |
44 | T} Thread safety MT-Safe |
45 | .TE | |
c466875e MK |
46 | .hy |
47 | .ad | |
48 | .sp 1 | |
47297adb | 49 | .SH CONFORMING TO |
9a74e018 | 50 | C99, POSIX.1-2001, POSIX.1-2008. |
19c98696 MK |
51 | .SH NOTES |
52 | The gcc supports also __real__. | |
53 | That is a GNU extension. | |
47297adb | 54 | .SH SEE ALSO |
fea681da MK |
55 | .BR cabs (3), |
56 | .BR cimag (3), | |
a8bda636 | 57 | .BR complex (7) |