std::imag(std::complex)
| Defined in header <complex>
|
||
| (1) | ||
| template< class T > T imag( const std::complex<T>& z ); |
(until C++14) | |
| template< class T > constexpr T imag( const std::complex<T>& z ); |
(since C++14) | |
| (2) | ||
| float imag( float z ); template< class DoubleOrInteger > |
(since C++11) (until C++14) |
|
| constexpr float imag( float z ); template< class DoubleOrInteger > |
(since C++14) | |
z, i.e. z.imag().|
2) Additional overloads are provided for float, double, long double, and all integer types, which are treated as complex numbers with zero imaginary component.
|
(since C++11) |
[edit] Parameters
| z | - | complex value |
[edit] Return value
the imaginary component of z
[edit] See also
| accesses the imaginary part of the complex number (public member function) | |
| returns the real component (function template) | |
| C documentation for cimag
| |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.
