Obtains the conjugate of a complex number
#include <complex.h> double complex conj ( double complex z ); float complex conjf ( float complex z ); long double complex conjl ( long double complex z );
The conj( ) function returns the complex conjugate of its complex argument. The conjugate of a complex number x + yi, where x and y are the real and imaginary parts, is defined as x - yi. Accordingly, the conj( ) function calculates the conjugate by changing the sign of the imaginary part.
See the example for cabs( ) in this chapter.