cimag man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

CREAL(3)		 BSD Library Functions Manual		      CREAL(3)

NAME
     creal — complex real-part function
     cimag — complex imaginary-part function

SYNOPSIS
     #include <complex.h>

     double
     creal(double complex z);

     long double
     creall(long double complex z);

     float
     crealf(float complex z);

     double
     cimag(double complex z);

     long double
     cimagl(long double complex z);

     float
     cimagf(float complex z);

DESCRIPTION
     creal(z) extracts the real part of the complex floating-point number z.
     cimag(z) extracts the imaginary part of the complex floating-point number
     z.

     If z = x+iy, then creal(z) = x and cimag(z) = y.

EXAMPLES
     The function foo defined in the example below returns its complex argu‐
     ment with the imaginary part scaled by a factor of 2.

	   #include <complex.h>

	   double complex foo(double complex z) {
	     return creal(z) + 2.0*cimag(z)*I;
	   }

SEE ALSO
     complex(3)

STANDARDS
     The creal() and cimag() functions conform to ISO/IEC 9899:2011.

4th Berkeley Distribution      December 11, 2006     4th Berkeley Distribution
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net