Namespaces
Variants
Views
Actions

std::arg(std::complex)

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

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

Returns the phase angle of the complex number z, i.e. atan2(std::imag(z), std::real(z)).

Parameters

z - complex value

Return value

the phase angle of z

See also

Template:cpp/numeric/complex/dcl list normTemplate:cpp/numeric/complex/dcl list conjTemplate:cpp/numeric/complex/dcl list polar