User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:complex.h:creal

creal

double creal(double complex z);

description of creal

calculate the complex real part

#include <stdio.h>
#include <complex.h>
 
int main( void )
{
 
   double complex zdouble=(double complex)4.24 + I*1.34;
   printf("creal(%f)\n", creal(zdouble));
   return 0;
}

output of creal c example

  creal(4.240000)
advertising
c/complex.h/creal.txt · Last modified: 2013/02/04 12:53 by 158.181.88.241

Impressum Datenschutz