# Complex.Divide 方法

## 重载

 Divide(Double, Complex) 将一个双精度实数除以一个复数，并返回结果。Divides one double-precision real number by a complex number and returns the result. Divide(Complex, Double) 将一个复数除以一个双精度实数，并返回结果。Divides one complex number by a double-precision real number and returns the result. Divide(Complex, Complex) 用一个复数除另一个复数并返回结果。Divides one complex number by another and returns the result.

## 示例

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

public class Example
{
public static void Main()
{
Complex c1 = new Complex(1.2, 2.3);
Complex[] values = { new Complex(1.2, 2.3),
new Complex(0.5, 0.75),
new Complex(3.0, -5.0) };
foreach (Complex c2 in values)
Console.WriteLine("{0} / {1} = {2:N2}", c1, c2,
Complex.Divide(c1, c2));
}
}
// The example displays the following output:
//       (1.2, 2.3) / (1.2, 2.3) = (1.00, 0.00)
//       (1.2, 2.3) / (0.5, 0.75) = (2.86, 0.31)
//       (1.2, 2.3) / (3, -5) = (-0.23, 0.38)
``````
``````Imports System.Numerics

Module Example
Public Sub Main()
Dim c1 As New Complex(1.2, 2.3)
Dim values() As Complex = { New Complex(1.2, 2.3),
New Complex(0.5, 0.75),
New Complex(3.0, -5.0) }
For Each c2 In values
Console.WriteLine("{0} / {1} = {2:N2}", c1, c2,
Complex.Divide(c1, c2))
Next
End Sub
End Module
' The example displays the following output:
'       (1.2, 2.3) / (1.2, 2.3) = (1.00, 0.00)
'       (1.2, 2.3) / (0.5, 0.75) = (2.86, 0.31)
'       (1.2, 2.3) / (3, -5) = (-0.23, 0.38)
``````

## 注解

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

## Divide(Double, Complex)

``````public:
static System::Numerics::Complex Divide(double dividend, System::Numerics::Complex divisor);``````
``public static System.Numerics.Complex Divide (double dividend, System.Numerics.Complex divisor);``
``static member Divide : double * System.Numerics.Complex -> System.Numerics.Complex``
``Public Shared Function Divide (dividend As Double, divisor As Complex) As Complex``

dividend
Double

divisor
Complex

### 注解

（ac/（c2 + d2）） + （ad/（c2 + d2） i(ac / (c2 + d2)) + (ad / (c2 + d2)i

## Divide(Complex, Double)

``````public:
static System::Numerics::Complex Divide(System::Numerics::Complex dividend, double divisor);``````
``public static System.Numerics.Complex Divide (System.Numerics.Complex dividend, double divisor);``
``static member Divide : System.Numerics.Complex * double -> System.Numerics.Complex``
``Public Shared Function Divide (dividend As Complex, divisor As Double) As Complex``

dividend
Complex

divisor
Double

### 注解

（ac/c2） + （bc/c2） i(ac / c2) + (bc / c2)i

## Divide(Complex, Complex)

``````public:
static System::Numerics::Complex Divide(System::Numerics::Complex dividend, System::Numerics::Complex divisor);``````
``public static System.Numerics.Complex Divide (System.Numerics.Complex dividend, System.Numerics.Complex divisor);``
``static member Divide : System.Numerics.Complex * System.Numerics.Complex -> System.Numerics.Complex``
``Public Shared Function Divide (dividend As Complex, divisor As Complex) As Complex``

dividend
Complex

divisor
Complex

### 注解

（（ac + bd）/（c2 + d2）） + （（bc-ad）/（c2 + d2） i((ac + bd) / (c2 + d2)) + ((bc - ad) / (c2 + d2)i