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)

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
c/complex.h/creal.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz