conj(3) - Linux man page

Name

conj, conjf, conjl - calculate the complex conjugate

Synopsis

#include <complex.h>

double complex conj(double complex z);
float complex conjf(float complex z);
long double complex conjl(long double complex z);

Link with -lm.

Description

The conj() function returns the complex conjugate value of z. That is the value obtained by changing the sign of the imaginary part.

One has:

cabs(z) = csqrt(z * conj(z))

Versions

These functions first appeared in glibc in version 2.1.

Conforming to

C99.

See Also

cabs(3), csqrt(3), complex(7)