std::polar(std::complex) - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::polar(std::complex)

From cppreference.com
< cpp‎ | numeric‎ | complex

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`.

### [edit] Parameters

r | - | magnitude
theta | - | phase angle

### [edit] Return value

a complex number determined by `r` and `theta`

### [edit] See also

abs(std::complex) | returns the magnitude of a complex number (function template) [edit]
arg | returns the phase angle (function template) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/complex/polar&oldid=71279"