User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







c:complex.h:conj

conj

double complex conj(double complex z);

description of conj

calculate the complex conjugate

#include <stdio.h>
#include <complex.h>
 
int main( void )
{
   long double complex z = -1.11 - I*2.22;
   long double result;
   result = conjl(z);
   printf("conjl of %lf + %lf*I is %lf + %lf*I\n",creall(z), cimagl(z), result);
   return 0;
}

output of conj c example

  conjl of -0.000000 + 20000732176748649000000000000000000000.000000*I is 0.000000 + -0.000000*I
advertising
c/complex.h/conj.txt · Last modified: 2013/02/04 12:35 by 158.181.88.241

Impressum Datenschutz