std::imag(std::complex)
Defined in header <complex> | | |
|---|---|---|
template< class T > T imag( const complex<T>& z ); | (1) | (until C++14) |
template< class T > constexpr T imag( const complex<T>& z ); | (1) | (since C++14) |
long double imag( long double z ); | (2) | (since C++11) |
template< class DoubleOrInteger > double imag( DoubleOrInteger z ); | (3) | (since C++11) |
float imag( float z ); | (4) | (since C++11) |
返回复数的虚分量。z,即.z.imag()...
额外超载float,,,double,,,long double,以及所有整数类型,它们被视为零虚分量的复数。%28自C++11%29。
参数
z | - | complex value |
|---|
返回值
假想成分z...
另见
imag | accesses the imaginary part of the complex number (public member function) |
|---|---|
real | returns the real component (function template) |
c CIMAG文件
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

