2004-11-03 13:51:07 +00:00
|
|
|
.\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
|
|
|
|
.\" Distributed under GPL
|
|
|
|
.\"
|
|
|
|
.TH CREAL 3 2002-07-28 "" "complex math routines"
|
|
|
|
.SH NAME
|
|
|
|
creal, crealf, creall \- get real part of a complex number
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B #include <complex.h>
|
|
|
|
.sp
|
|
|
|
.BI "double creal(double complex " z );
|
2004-11-11 17:28:42 +00:00
|
|
|
.br
|
2004-11-03 13:51:07 +00:00
|
|
|
.BI "float crealf(float complex " z );
|
2004-11-11 17:28:42 +00:00
|
|
|
.br
|
2004-11-03 13:51:07 +00:00
|
|
|
.BI "long double creall(long double complex " z );
|
|
|
|
.sp
|
|
|
|
Link with \-lm.
|
|
|
|
.SH DESCRIPTION
|
2005-10-19 14:48:35 +00:00
|
|
|
The
|
|
|
|
.BR creal ()
|
|
|
|
function returns the real part of the complex number z.
|
2004-11-03 13:51:07 +00:00
|
|
|
.LP
|
|
|
|
One has z = creal(z) + I*cimag(z).
|
|
|
|
.SH NOTE
|
|
|
|
The gcc supports also __real__. That is a GNU extension.
|
|
|
|
.SH "CONFORMING TO"
|
|
|
|
C99
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR cabs (3),
|
|
|
|
.BR cimag (3),
|
2006-04-21 01:24:06 +00:00
|
|
|
.BR complex (7)
|