Complex.Subtraction Complex.Subtraction Complex.Subtraction Complex.Subtraction Operator

定義

オーバーロード

Subtraction(Complex, Complex) Subtraction(Complex, Complex) Subtraction(Complex, Complex) Subtraction(Complex, Complex)

複素数を別の複素数から減算します。Subtracts a complex number from another complex number.

Subtraction(Complex, Double) Subtraction(Complex, Double) Subtraction(Complex, Double) Subtraction(Complex, Double)
Subtraction(Double, Complex) Subtraction(Double, Complex) Subtraction(Double, Complex) Subtraction(Double, Complex)

Subtraction(Complex, Complex) Subtraction(Complex, Complex) Subtraction(Complex, Complex) Subtraction(Complex, Complex)

複素数を別の複素数から減算します。Subtracts a complex number from another complex number.

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 Complex Complex Complex

減算される値 (被減数)。The value to subtract from (the minuend).

right
Complex Complex Complex Complex

減算する値 (減数)。The value to subtract (the subtrahend).

戻り値

right から left を減算した結果。The result of subtracting right from left.

注釈

Subtractionメソッドは、複素数を減算演算子の操作を定義します。The Subtraction method defines the operation of the subtraction operator for complex numbers. 次のようなコードが有効にします。It enables code such as the following:

System.Numerics.Complex c1 = new System.Numerics.Complex(6.7, -1.3);
System.Numerics.Complex c2 = new System.Numerics.Complex(1.4, 3.8);
System.Numerics.Complex result = c1 - c2;
Console.WriteLine("{0} - {1} = {2}", c1, c2, result);
// The example displays the following output:
//       (6.7, -1.3); - (1.4, 3.8); = (5.3, -5.1)      
Dim c1 As New System.Numerics.Complex(6.7, -1.3)
Dim c2 As New System.Numerics.Complex(1.4, 3.8)
Dim result As System.Numerics.Complex = c1 - c2
Console.WriteLine("{0} - {1} = {2}", c1, c2, result)
' The example displays the following output:
'       (6.7, -1.3) - (1.4, 3.8) = (5.3, -5.1)      

そのコンポーネントの値がいずれかの場合は、メソッドのいずれかでオーバーフローが発生、結果が実数部または虚数部のコンポーネントで呼び出し、Double.PositiveInfinityまたはDouble.NegativeInfinityします。If the method call results in an overflow in either the real or imaginary component, the value of that component is either Double.PositiveInfinity or Double.NegativeInfinity.

複素数、c + di は、別の複素数から減算、+、bi は次の形式になります。The subtraction of a complex number, c + di, from another complex number, a + bi, takes the following form:

(c、-) + (b、d) i(a - c) + (b - d)i

カスタム演算子をサポートしない言語を呼び出すことができます、Subtractメソッド代わりにします。Languages that do not support custom operators can call the Subtract method instead.

この演算子を同等のメソッドは、します。 Complex.Subtract(Complex, Complex)The equivalent method for this operator is Complex.Subtract(Complex, Complex)

こちらもご覧ください

Subtraction(Complex, Double) Subtraction(Complex, Double) Subtraction(Complex, Double) Subtraction(Complex, Double)

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

パラメーター

戻り値

Subtraction(Double, Complex) Subtraction(Double, Complex) Subtraction(Double, Complex) Subtraction(Double, Complex)

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

パラメーター

戻り値

適用対象