Namespaces
Variants
Views
Actions

std::polar(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex
Revision as of 19:41, 10 April 2013 by Dieram3 (Talk | contribs)

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

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

Parameters

r - magnitude
theta - phase angle

Return value

a complex number determined by r and theta

See also

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