polar

Determines the polar coordinates.

  template<class T> 
  complex<T> polar(const T&, const T&);
  
Remarks

Returns the complex value corresponding to a complex number whose magnitude is the first argument and whose phase angle is the second argument.