Complex number arithmetic
来自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. |
头
<complex.h>定义宏,并宣布支持复杂的数字运算的功能。复杂值类型的值double complex,float complex,long double complex Original:
The header
<complex.h> defines macros and declares functions that support complex number arithmetic. Complex values are values of type double complex, float complex, long double complex, 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.
如果宏常数
__STDC_IEC_559_COMPLEX__(C99)由编译器定义,除了复杂类型的假想的类型也支持:double imaginary,float imaginary,和long double imaginary。当假想的类型的值被转换为复杂类型的值,由此产生的复杂类型都有其实分量设置为零。当复杂类型的值被转换为假想的类型的值,实分量被丢弃.Original:
If the macro constant
__STDC_IEC_559_COMPLEX__(C99) is defined by the compiler, in addition to the complex types, the imaginary types are also supported: double imaginary, float imaginary, and long double imaginary. When a value of imaginary type is converted to a value of complex type, the resulting complex type has its real component set to zero. When a value of complex type is converted to a value of imaginary type, the real component is discarded.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:
Standard arithmetic operators +, -, *, / can be used with real, complex, and imaginary types in any combination.
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.
如果宏常数
__STDC_NO_COMPLEX__(C11)定义由编译器,头<complex.h>,此处列出的所有的名字都没有提供.Original:
If the macro constant
__STDC_NO_COMPLEX__(C11) is defined by the compiler, the header <complex.h> and all of the names listed here are not provided.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.
#pragma STDC CX_LIMITED_RANGE on是使用的,复杂的乘法,除法和绝对值可以使用简化的数学公式,尽管中间溢出的可能性.
Original:
If #pragma STDC CX_LIMITED_RANGE on is used, complex multiplication, division, and absolute value may use simplified mathematical formulas, despite the possibility of intermediate overflow.
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.
| Defined in header
<complex.h> | |
Original: Types The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (C99) |
复杂类型的宏 Original: complex type macro The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
| (C99) |
复杂的单位不变 Original: the complex unit constant i The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
Original: The imaginary constant The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (C99) |
虚类型的宏 Original: imaginary type macro The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
| (C99) |
虚数单位不变 Original: the imaginary unit constant i The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
| (C99) |
复杂的或虚构的单位不变 Original: the complex or imaginary unit constant i The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (宏不变) |
Original: Manipulation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (C11) (C11) (C11) |
constructs a complex number from real and imaginary parts (函数宏) |
| (C99) (C99) (C99) |
计算的虚数部的复数 Original: computes the imaginary part 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. (函数) |
| (C99) (C99) (C99) |
计算一个复数的实部 Original: computes the real part 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. (函数) |
| (C99) (C99) (C99) |
计算一个复数的相位角 Original: computes the phase angle 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. (函数) |
| (C99) (C99) (C99) |
计算的复数共轭 Original: computes 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. (函数) |
| (C99) (C99) (C99) |
计算黎曼球上的投影 Original: computes the projection on Riemann sphere The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算一个复数幅度 Original: computes 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: Exponential functinos The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| (C99) (C99) (C99) |
计算复杂的基e指数 Original: computes the complex base-e exponential The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的自然对数 Original: computes the complex natural logarithm The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
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. | |
| (C99) (C99) (C99) |
计算复杂的电源功能 Original: computes the complex power function The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的平方根 Original: computes the complex square root 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. | |
| (C99) (C99) (C99) |
计算复杂的反余弦值 Original: computes the complex arc cosine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的反正弦 Original: computes the complex arc sine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的反正切 Original: computes the complex arc tangent The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的余弦 Original: computes the complex cosine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的正弦 Original: computes the complex sine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的切线 Original: computes the complex tangent The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
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. | |
| (C99) (C99) (C99) |
计算复杂的双曲余弦 Original: computes the complex arc hyperbolic cosine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的双曲正弦 Original: computes the complex arc hyperbolic sine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
computes the complex arc hyperbolic tangent (函数) |
| (C99) (C99) (C99) |
计算复杂的双曲余弦值 Original: computes the complex hyperbolic cosine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
计算复杂的双曲正弦值 Original: computes the complex hyperbolic sine The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (函数) |
| (C99) (C99) (C99) |
computes the complex hyperbolic tangent (函数) |