Namespaces
Variants
Views
Actions

std::real(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 12:26, 2 June 2012 by Nate (Talk | contribs)

Template:cpp/numeric/complex/sidebar

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

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

Parameters

z - complex value

Return value

the real component of z

See also

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