首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::polar(std::complex)

Defined in header <complex>

?

?

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)

arg

returns the phase angle (function template)

代码语言:txt
复制
 ? cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com