std::complex
来自cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Defined in header <complex>
|
||
template< class T > class complex; //not defined |
(1) | |
template<> class complex<float>; |
(2) | |
template<> class complex<double>; |
(3) | |
template<> class complex<long double>; |
(4) | |
专业std::complex<float>,std::complex<double>,std::complex<long double>是文字类型的表示和操作复数.
Original:
The specializations std::complex<float>, std::complex<double>, and std::complex<long double> are literal types for representing and manipulating 复数.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
任何其他类型的实例化该模板
complex
的影响是不确定的.Original:
The effect of instantiating the template
complex
for any other type is unspecified.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 会员类型
会员类型
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
value_type
|
T
|
[编辑] 成员函数
构造一个复数 Original: constructs a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
分配的内容 Original: assigns the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
访问的复数的实数部分 Original: accesses the real part of the complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |
accesses the imaginary part of the complex number (公共成员函数) | |
两个复数或一个复杂的和一个标量的复合赋值 Original: compound assignment of two complex numbers or a complex and a scalar The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) |
[编辑] 非成员函数
一元运算符复数 Original: applies unary operators to complex numbers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
进行复数算术,两个复杂的值或一个复杂的和一个标量 Original: performs complex number arithmetics on two complex values or a complex and a scalar The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
比较两个复数或一个复杂和一个标量 Original: compares two complex numbers or a complex and a scalar The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
序列化和反序列化一个复杂的数 Original: serializes and deserializes a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
返回真正的组分 Original: returns the real component The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
返回的虚分量 Original: returns the imaginary component The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
返回一个复数的幅度 Original: returns the magnitude of a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
返回的相位角 Original: returns the phase angle The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
返回的幅度平方 Original: returns the squared magnitude The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
返回的复共轭 Original: returns the complex conjugate The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
(C++11) |
返回的黎曼球上的投影 Original: returns the projection onto the Riemann sphere The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) |
构造一个复数幅值和相位角 Original: constructs a complex number from magnitude and phase angle The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
Original: Exponential functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
complex base e exponential (函数模板) | |
沿负实轴的割线复杂的自然对数 Original: complex natural logarithm with the branch cuts along the negative real axis The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
complex common logarithm with the branch cuts along the negative real axis (函数模板) | |
Original: Power functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
复杂的电源,一个或这两个参数可以是复数 Original: complex power, one or both arguments may be a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
在右半平面的范围内的复杂的平方根 Original: complex square root in the range of the right half-plane The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
Original: Trigonometric functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
计算一个复数(sin(z))的正弦 Original: computes sine of a complex number (sin(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
计算一个复数的余弦(cos(z)) Original: computes cosine of a complex number (cos(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
计算一个复数(tan(z))相切 Original: computes tangent of a complex number (tan(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
(C++11) |
computes arc sine of a complex number (arcsin(z)) (函数模板) |
(C++11) |
计算反余弦值的复数(arccos(z)) Original: computes arc cosine of a complex number (arccos(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) |
(C++11) |
computes arc tangent of a complex number (arctan(z)) (函数模板) |
Original: Hyperbolic functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
计算复数的双曲正弦(sh(z)) Original: computes hyperbolic sine of a complex number (sh(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
计算双曲余弦的复数(ch(z))的 Original: computes hyperbolic cosine of a complex number (ch(z)) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
计算复杂的圆弧正弦复数的双曲正切 Original: computes hyperbolic tangent of a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) | |
(C++11) |
计算复数的双曲反正弦 Original: computes hyperbolic arc sine of a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) |
(C++11) |
计算复数的双曲余弦值 Original: computes hyperbolic arc cosine of a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) |
(C++11) |
双曲反正切计算一个复数 Original: computes hyperbolic arc tangent of a complex number The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数模板) |