| Types and the imaginary constant | |||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||
| Manipulation | |||||||||||||||||||||||||||||||
| Power and exponential functions | |||||||||||||||||||||||||||||||
| Trigonometric functions | |||||||||||||||||||||||||||||||
| Hyperbolic functions | |||||||||||||||||||||||||||||||
Defined in header <complex.h> | ||
| (1) | (since C99) | |
| (2) | (since C99) | |
| (3) | (since C99) | |
Defined in header <tgmath.h> | ||
#define conj( z ) | (4) | (since C99) |
z has typelongdoublecomplex,longdoubleimaginary, orlongdouble,conjl is called. Ifz has typefloatcomplex,floatimaginary, orfloat,conjf is called. Ifz has typedoublecomplex,doubleimaginary,double, or any integer type,conj is called.Contents |
| z | - | complex argument |
The complex conjugate ofz.
On C99 implementations that do not implementI as_Imaginary_I,conj may be used to obtain complex numbers with negative zero imaginary part. In C11, the macroCMPLX is used for that purpose.
Output:
The conjugate of 1.0+2.0i is 1.0-2.0iTheir product is 5.0+0.0i
C++ documentation forconj |