Namespaces
Variants
Views
Actions

std::imag(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 23:52, 2 November 2012 by P12bot (Talk | contribs)

Defined in header <complex>
template< class T >
T imag( const complex<T>& z );

Returns the imaginary component of the complex number z, i.e. z.imag().

Parameters

z - complex value

Return value

the imaginary component of z

See also

Template:cpp/numeric/complex/dcl list realTemplate:cpp/numeric/complex/dcl list imagTemplate:cpp/numeric/complex/dcl list imag2