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 |
返回值
由r
和theta
...
另见
abs(std::complex) | returns the magnitude of a complex number (function template) |
---|---|
arg | returns the phase angle (function template) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。