conj


conj

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.

Example

See the example for cabs( ) in this chapter.

See Also

cabs( ), cimag( ), creal( ), carg( ), conj( ), and cproj( )



C(c) In a Nutshell
C in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596006977
EAN: 2147483647
Year: 2006
Pages: 473

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net