Complex.Division Operator
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Delar upp ett angivet tal med ett annat angivet tal, där minst ett av dem är ett komplext tal, och det andra kan vara ett reellt tal med dubbel precision.
Överlagringar
| Name | Description |
|---|---|
| Division(Double, Complex) |
Delar ett angivet reellt tal med dubbel precision med ett angivet komplext tal. |
| Division(Complex, Double) |
Delar upp ett angivet komplext tal med ett angivet reellt tal med dubbel precision. |
| Division(Complex, Complex) |
Delar upp ett angivet komplext tal med ett annat angivet komplext tal. |
Kommentarer
Operatorn Division tillåter att du utför divisionsåtgärder som omfattar komplexa tal. Den aktiverar kod, till exempel följande:
Complex c1 = new Complex(2.3, 3.7);
Complex c2 = new Complex(1.4, 2.3);
Complex c3 = c1 / c2;
let c1 = Complex(2.3, 3.7)
let c2 = Complex(1.4, 2.3)
let c3 = c1 / c2
Dim c1 As New Complex(2.3, 3.7)
Dim c2 As New Complex(1.4, 2.3)
Dim c3 As Complex = c1 / c2
Om divisionen resulterar i ett spill i antingen den verkliga eller imaginära komponenten är värdet för komponenten antingen Double.PositiveInfinity eller Double.NegativeInfinity.
Språk som inte stöder anpassade operatorer och operatoröverlagring kan anropa Divide motsvarande metodgrupp i stället.
De Division operatorer som tar emot en dubbel är effektivare än de operatorer som tar emot två komplexa tal.
Division(Double, Complex)
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
Delar ett angivet reellt tal med dubbel precision med ett angivet komplext tal.
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
Parametrar
- left
- Double
Det verkliga värdet med dubbel precision som ska delas.
- right
- Complex
Det komplexa värde som ska divideras med.
Returer
Resultatet av att dividera med leftright, som ett komplext tal.
Kommentarer
Uppdelningen av ett verkligt tal (som kan betraktas som det komplexa talet a + 0i) och ett komplext tal (c + di) har följande form:
$\frac{ac}{c^2 + d^2} + (\frac{ad}{c^2 + d^2})i$
Språk som inte stöder anpassade operatorer och operatoröverlagring kan anropa Complex.Divide(Double, Complex) motsvarande metod i stället.
Se även
Gäller för
Division(Complex, Double)
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
Delar upp ett angivet komplext tal med ett angivet reellt tal med dubbel precision.
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
Parametrar
- left
- Complex
Det komplexa värde som ska delas.
- right
- Double
Det verkliga värdet med dubbel precision som ska divideras med.
Returer
Resultatet av att dividera med leftright, som ett komplext tal.
Kommentarer
Divisionen av ett komplext tal (a + bi) och ett verkligt tal (som kan betraktas som det komplexa talet c + 0i) har följande form:
$\frac{ac}{c^2} + (\frac{bc}{c^2})i$
Språk som inte stöder anpassade operatorer och operatoröverlagring kan anropa Complex.Divide(Complex, Double) motsvarande metod i stället.
Se även
Gäller för
Division(Complex, Complex)
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
- Källa:
- Complex.cs
Delar upp ett angivet komplext tal med ett annat angivet komplext tal.
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) = System::Numerics::IDivisionOperators<System::Numerics::Complex, System::Numerics::Complex, System::Numerics::Complex>::op_Division;
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
Parametrar
- left
- Complex
Det komplexa värde som ska delas.
- right
- Complex
Det komplexa värde som ska divideras med.
Returer
Resultatet av att dividera med leftright.
Implementeringar
Kommentarer
Divisionen av ett komplext tal, a + bi, och ett andra komplext tal, c + di, har följande form:
$\frac{ac + cd}{c^2 + d^2} + (\frac{bc - ad}{c^2 + d^2})i$
Språk som inte stöder anpassade operatorer och operatoröverlagring kan anropa Complex.Divide(Complex, Double) motsvarande metod i stället.