# Complex.Subtraction 演算子

## オーバーロード

 Subtraction(Complex, Complex) 複素数を別の複素数から減算します。Subtracts a complex number from another complex number. Subtraction(Complex, Double) 複素数から倍精度実数を減算します。Subtracts a double-precision real number from a complex number. 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)
``````

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

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

## Subtraction(Complex, Complex)

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

right
Complex

#### 戻り値

Complex

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

### 注釈

(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)

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

right
Double

#### 戻り値

Complex

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

### 注釈

(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)

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

right
Complex

#### 戻り値

Complex

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

### 注釈

(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.