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)

複素数から倍精度実数を減算します。Subtracts a double-precision real number from a complex number.

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

倍精度実数から複素数を減算します。Subtracts a complex number from a double-precision real number.

注釈

演算子Subtractionを使用すると、複素数を含む減算演算を実行できます。The Subtraction operator allows performing subtraction operations that involve 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 subtraction results in an overflow in either the real or imaginary component, the value of that component is either Double.PositiveInfinity or Double.NegativeInfinity.

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

1つの double を受け取る演算子は、2つの複素数を受け取る演算子よりも効率的です。AdditionThe Addition operators that receive one double are more efficient than the operators that receive two Complex numbers.

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.

注釈

複素数 c + di の減算は、別の複素数 (a + bi) から次の形式で行われます。The subtraction of a complex number, c + di, from another complex number, a + bi, takes the following form:

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

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

こちらもご覧ください

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

複素数から倍精度実数を減算します。Subtracts a double-precision real number from a complex number.

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

パラメーター

left
Complex Complex Complex Complex

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

right
Double Double Double Double

減算する倍精度実数値 (減数)。The double-precision real value to subtract (the subtrahend).

戻り値

right から left を減算した、複素数としての結果。The result of subtracting right from left, as a complex number.

注釈

複素数 (a + bi) からの実数 (複素数 c + 0i と見なすことができる) の減算は、次のような形式になります。The subtraction of a real number (which can be regarded as the complex number c + 0i) from a complex number (a + bi) takes the following form:

(a-c) + bi(a - c) + bi

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

こちらもご覧ください

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

倍精度実数から複素数を減算します。Subtracts a complex number from a double-precision real number.

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

パラメーター

left
Double Double Double Double

減算される倍精度実数値 (被減数)。The double-precision real value to subtract from (the minuend).

right
Complex Complex Complex Complex

減算する複素数 (減数)。The complex value to subtract (the subtrahend).

戻り値

right から left を減算した、複素数としての結果。The result of subtracting right from left, as a complex number.

注釈

複素数からの複素数 (c + di) の減算 (複素数 a + 0i と見なされる可能性があります) は、次の形式になります。The subtraction of a complex number (c + di) from a real number (which can be regarded as the complex number a + 0i) takes the following form:

(a-c)-di(a - c) - di

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

こちらもご覧ください

適用対象