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

on the occasion of the current invasion of Russia in Ukraine

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

Impressum Datenschutz