xref: /netbsd-src/lib/libm/complex/creal.3 (revision 411564dc9ac78e3b850fc18d857ae90e152b8fb4)
1.\" $NetBSD: creal.3,v 1.5 2017/09/27 09:20:27 maya Exp $
2.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved
3.Dd September 27, 2017
4.Dt CREAL 3
5.Os
6.Sh NAME
7.Nm creal ,
8.Nm crealf ,
9.Nm creall
10.Nd complex real functions
11.Sh SYNOPSIS
12.In complex.h
13.Ft double
14.Fn creal "double complex z"
15.Ft float
16.Fn crealf "float complex z"
17.Ft long double
18.Fn creall "long double complex z"
19.In tgmath.h
20.Ft complex-float
21.Fn creal "complex-float z"
22.Sh DESCRIPTION
23These functions compute the real part of
24.Ar z .
25.Sh RETURN VALUES
26These functions return the real part value.
27.Sh ERRORS
28No errors are defined.
29.Sh APPLICATION USAGE
30For a variable
31.Ar z
32of type
33.Vt complex :
34.Bd -literal -offset indent
35z == creal(z) + cimag(z)*I
36.Ed
37.Sh SEE ALSO
38.Xr carg 3 ,
39.Xr cimag 3 ,
40.Xr conj 3 ,
41.Xr cproj 3 ,
42.St -p1003.1-2001
43.Aq Pa complex.h
44.Sh COPYRIGHT
45Portions of this text are reprinted and reproduced in electronic form
46from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
47-- Portable Operating System Interface (POSIX), The Open Group Base
48Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
49Electrical and Electronics Engineers, Inc and The Open Group.
50In the
51event of any discrepancy between this version and the original IEEE and
52The Open Group Standard, the original IEEE and The Open Group Standard
53is the referee document.
54The original Standard can be obtained online at
55http://www.opengroup.org/unix/online.html .
56