Complex.Multiply Operator

Definition

Multiplicerar 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
Multiply(Double, Complex)

Multiplicerar ett angivet reellt tal med dubbel precision med ett angivet komplext tal.

Multiply(Complex, Double)

Multiplicerar det angivna komplexa talet med ett angivet reellt tal med dubbel precision.

Multiply(Complex, Complex)

Multiplicerar två angivna komplexa tal.

Kommentarer

Med Multiply operatorn kan du utföra multiplikationsåtgärder som omfattar komplexa tal. Den aktiverar kod, till exempel följande:

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

Om multiplikationen 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 kan anropa Multiply motsvarande grupp med metoder i stället.

De Multiply operatorer som tar emot en dubbel är effektivare än de operatorer som tar emot två komplexa tal.

Multiply(Double, Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Multiplicerar 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 multipliceras.

right
Complex

Det komplexa värde som ska multipliceras.

Returer

Produkten av left och right, som ett komplext tal.

Kommentarer

Multiplikationen av ett verkligt tal (som kan betraktas som det komplexa talet a + 0i) och ett komplext tal (c + di) har följande form:

$ac + adi$

Språk som inte stöder anpassade operatorer kan anropa Complex.Multiply(Double, Complex) motsvarande metod i stället.

Se även

Gäller för

Multiply(Complex, Double)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Multiplicerar det angivna komplexa talet 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 multipliceras.

right
Double

Det verkliga värdet med dubbel precision som ska multipliceras.

Returer

Produkten av left och right, som ett komplext tal.

Kommentarer

Multiplikationen av ett komplext tal (a + bi) och ett verkligt tal (som kan betraktas som det komplexa talet c + 0i) har följande form:

$ac + bci$

Språk som inte stöder anpassade operatorer kan anropa Complex.Multiply(Complex, Double) motsvarande metod i stället.

Se även

Gäller för

Multiply(Complex, Complex)

Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs
Källa:
Complex.cs

Multiplicerar två angivna komplexa 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::IMultiplyOperators<System::Numerics::Complex, System::Numerics::Complex, System::Numerics::Complex>::op_Multiply;
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 första komplexa värdet som multipliceras.

right
Complex

Det andra komplexa värdet som ska multipliceras.

Returer

Produkten av left och right.

Implementeringar

Kommentarer

Multiplikationen av ett komplext tal, a + bi, och ett andra komplext tal, c + di, har följande form:

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

Språk som inte stöder anpassade operatorer kan anropa Complex.Multiply(Complex, Complex) motsvarande metod i stället.

Se även

Gäller för