Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>conj() return complex conjugate of a number</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 conj()                  Return Complex Conjugate of a Number

 #include   <complex.h>

 double conj(z);
 complex z;             Complex number

        The conj() function reutnrs the complex conjugate of a number.

       Returns:     The complex conjugate of the complex number.

   -------------------------------- Example ---------------------------------

 #include <iostream.h>
 #include <complex.h>

 int main(void)

    double x = 9.2, y = 5.1;
    complex z = complex(x,y);
    cout << "z has complex conjugate equal to  " << conj(z);
    return 0;


See Also: arg() complex() imag() norm() polar()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson