Namespaces
Variants
Views
Actions

std::real(std::complex)

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 imag