# Complex.Multiply 方法

## 重载

 Multiply(Complex, Complex) 返回两个复数的乘积。Returns the product of two complex numbers. Multiply(Double, Complex) 返回一个双精度实数与一个复数的乘积。Returns the product of a double-precision real number and a complex number. Multiply(Complex, Double) 返回一个复数与一个双精度实数的乘积。Returns the product of a complex number and a double-precision real number.

## 示例

``````using System;
using System.Numerics;

public class Example
{
public static void Main()
{
Complex number1 = new Complex(8.3, 17.5);
Complex[] numbers = { new Complex(1.4, 6.3),
new Complex(-2.7, 1.8),
new Complex(3.1, -2.1) };
foreach (Complex number2 in numbers)
Console.WriteLine("{0} x {1} = {2}", number1, number2,
Complex.Multiply(number1, number2));
}
}
// The example displays the following output:
//       (8.3, 17.5) x (1.4, 6.3) = (-98.63, 76.79)
//       (8.3, 17.5) x (-2.7, 1.8) = (-53.91, -32.31)
//       (8.3, 17.5) x (3.1, -2.1) = (62.48, 36.82)
``````
``````Imports System.Numerics

Module Example
Public Sub Main()
Dim number1 As New Complex(8.3, 17.5)
Dim numbers() As Complex = { New Complex(1.4, 6.3),
New Complex(-2.7, 1.8),
New Complex(3.1, -2.1) }
For Each number2 In numbers
Console.WriteLine("{0} x {1} = {2}", number1, number2,
Complex.Multiply(number1, number2))
Next
End Sub
End Module
' The example displays the following output:
'       (8.3, 17.5) x (1.4, 6.3) = (-98.63, 76.79)
'       (8.3, 17.5) x (-2.7, 1.8) = (-53.91, -32.31)
'       (8.3, 17.5) x (3.1, -2.1) = (62.48, 36.82)
``````

## 注解

Multiply 方法允许执行涉及复数的乘法运算。The Multiply methods allow performing multiplication operations that involve complex numbers.

## Multiply(Complex, Complex)

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

left
Complex

right
Complex

#### 返回

`left``right` 参数的乘积。The product of the `left` and `right` parameters.

### 注解

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

## Multiply(Double, Complex)

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

left
Double

right
Complex

#### 返回

`left``right` 参数的乘积。The product of the `left` and `right` parameters.

## Multiply(Complex, Double)

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

left
Complex

right
Double

#### 返回

`left``right` 参数的乘积。The product of the `left` and `right` parameters.

ac + bciac + bci