在线文档教程
C++
数字 | Numerics

std::polar(std::complex)

极性%28 std::复合%29

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

返回一个具有大小的复数。r相角theta...

The behavior is undefined if r is negative or NaN, or if theta is infinite(since C++17)

参数

r-magnitude
theta-phase angle

返回值

rtheta...

另见

abs(std::complex)returns the magnitude of a complex number (function template)
argreturns the phase angle (function template)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/数值/复合/极