cimag, cimagf, cimagl
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at cimag, cimagf, cimagl.
Retrieves the imaginary part of a complex number.
double cimag( _Dcomplex z ); float cimag( _Fcomplex z ); // C++ long double cimag( _Lcomplex z ); // C++ float cimagf( _Fcomplex z ); long double cimagl( _Lcomplex z );
Parameters
z
A complex number.
The imaginary part of z.
Because C++ allows overloading, you can call overloads of cimag that take _Fcomplex or _Lcomplex values, and return float or long double values. In a C program, cimag always takes a _Dcomplex value and returns a double value.
| Routine | C header | C++ header |
|---|---|---|
cimag, cimagf, cimagl | <complex.h> | <ccomplex> |
For more compatibility information, see Compatibility in the Introduction.
Alphabetical Function Reference
norm, normf, norml
creal, crealf, creall
cproj, cprojf, cprojl
conj, conjf, conjl
carg, cargf, cargl
cabs, cabsf, cabsl
Show: