Complex.Multiply 运算符

定义

将一个指定数字乘以另一个指定数字,其中至少有一个是复数,另一个可以是双精度实数。Multiplies a specified number by another specified number, where at least one of them is a complex number, and the other could be a double-precision real number.

重载

Multiply(Complex, Complex)

将两个指定复数相乘。Multiplies two specified complex numbers.

Multiply(Double, Complex)

将一个指定双精度实数乘以一个指定复数。Multiplies a specified double-precision real number by a specified complex number.

Multiply(Complex, Double)

将一个指定复数乘以一个指定双精度实数。Multiplies the specified complex number by a specified double-precision real number.

注解

Multiply 运算符允许执行涉及复数的乘法运算。The Multiply operator allows performing multiplication operations that involve complex numbers. 它可以实现如下所示的代码:It enables code such as the following:

Complex c1 = Complex.One;
Complex c2 = new Complex(1.4, 2.3);
Complex c3 = c1 * c2;
Dim c1 As Complex = Complex.One
Dim c2 As New Complex(1.4, 2.3)
Dim c3 As Complex = c1 * c2

如果乘法导致实部或虚部溢出,则该组件的值为 Double.PositiveInfinityDouble.NegativeInfinityIf the multiplication results in an overflow in either the real or imaginary component, the value of that component is either Double.PositiveInfinity or Double.NegativeInfinity.

不支持自定义运算符的语言可以改为调用 Multiply 等效的方法组。Languages that do not support custom operators can call the Multiply equivalent group of methods instead.

接收一个 double 的 Multiply 运算符比接收两个复数的运算符更有效。The Multiply operators that receive one double are more efficient than the operators that receive two Complex numbers.

Multiply(Complex, Complex)

将两个指定复数相乘。Multiplies two specified complex numbers.

public:
 static System::Numerics::Complex operator *(System::Numerics::Complex left, System::Numerics::Complex right);
public static System.Numerics.Complex operator * (System.Numerics.Complex left, System.Numerics.Complex right);
static member ( * ) : System.Numerics.Complex * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Operator * (left As Complex, right As Complex) As Complex

参数

left
Complex

要相乘的第一个复值。The first complex value to multiply.

right
Complex

要相乘的第二个复值。The second complex value to multiply.

返回

leftright 的乘积。The product of left and right.

注解

复数、+ bi 和第二复数(c + di)的乘法采用以下形式:The multiplication of a complex number, a + bi, and a second complex number, c + di, takes the following form:

(ac-bd) + (ad + bc) i(ac - bd) + (ad + bc)i

不支持自定义运算符的语言可以改为调用 Complex.Multiply(Complex, Complex) 等效的方法。Languages that do not support custom operators can call the Complex.Multiply(Complex, Complex) equivalent method instead.

另请参阅

Multiply(Double, Complex)

将一个指定双精度实数乘以一个指定复数。Multiplies a specified double-precision real number by a specified complex number.

public:
 static System::Numerics::Complex operator *(double left, System::Numerics::Complex right);
public static System.Numerics.Complex operator * (double left, System.Numerics.Complex right);
static member ( * ) : double * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Operator * (left As Double, right As Complex) As Complex

参数

left
Double

要相乘的双精度实数值。The double-precision real value to multiply.

right
Complex

要相乘的复值。The complex value to multiply.

返回

leftright 的乘积(为复数)。The product of left and right, as a complex number.

注解

实数(可视为复数 a + 0 i)和复数(c + di)的乘法采用以下形式:The multiplication of a real number (which can be regarded as the complex number a + 0i) and a complex number (c + di) takes the following form:

ac + adiac + adi

不支持自定义运算符的语言可以改为调用 Complex.Multiply(Double, Complex) 等效的方法。Languages that do not support custom operators can call the Complex.Multiply(Double, Complex) equivalent method instead.

另请参阅

Multiply(Complex, Double)

将一个指定复数乘以一个指定双精度实数。Multiplies the specified complex number by a specified double-precision real number.

public:
 static System::Numerics::Complex operator *(System::Numerics::Complex left, double right);
public static System.Numerics.Complex operator * (System.Numerics.Complex left, double right);
static member ( * ) : System.Numerics.Complex * double -> System.Numerics.Complex
Public Shared Operator * (left As Complex, right As Double) As Complex

参数

left
Complex

要相乘的复值。The complex value to multiply.

right
Double

要相乘的双精度实数值。The double-precision real value to multiply.

返回

leftright 的乘积(为复数)。The product of left and right, as a complex number.

注解

复数(a + bi)与实数(可视为复数 c + 0 i)的乘法采用以下形式:The multiplication of a complex number (a + bi) and a real number (which can be regarded as the complex number c + 0i) takes the following form:

ac + bciac + bci

不支持自定义运算符的语言可以改为调用 Complex.Multiply(Complex, Double) 等效的方法。Languages that do not support custom operators can call the Complex.Multiply(Complex, Double) equivalent method instead.

另请参阅

适用于