Programming Reference/Librarys
Question & Answer
Q&A is closed
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; }
conjl of -0.000000 + 20000732176748649000000000000000000000.000000*I is 0.000000 + -0.000000*I