Namespaces
Variants
Views
Actions

std::polar(std::complex)

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

Defined in header <complex>
template< class T >
complex<T> polar( const T& rho, const T& theta = 0 );

Returns a complex number with magnitude rho and phase angle theta.

Parameters

rho - magnitude
theta - angle

Return value

a complex number determined by rho and theta

See also

Template:cpp/numeric/complex/dcl list argTemplate:cpp/numeric/complex/dcl list abs