December 2005
Beginner to intermediate
618 pages
20h 19m
English
conj
Obtains the conjugate of a complex number
#include <complex.h> double complexconj( double complexz); float complexconjf( float complexz); long double complexconjl( long double complexz);
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.
Read now
Unlock full access