Complex.Divide Complex.Divide Complex.Divide Complex.Divide Method

定義

指定した数値を、指定した別の数値で除算します。数値の少なくとも 1 つは複素数であり、他の数値には倍精度実数を使用できます。Divides a specified number by another specified number, where at least one of them is a complex number, and the other could be a double-precision real number.

オーバーロード

Divide(Double, Complex) Divide(Double, Complex) Divide(Double, Complex) Divide(Double, Complex)

倍精度実数を複素数で除算し、その結果を返します。Divides one double-precision real number by a complex number and returns the result.

Divide(Complex, Double) Divide(Complex, Double) Divide(Complex, Double) Divide(Complex, Double)

複素数を倍精度実数で除算し、その結果を返します。Divides one complex number by a double-precision real number and returns the result.

Divide(Complex, Complex) Divide(Complex, Complex) Divide(Complex, Complex) Divide(Complex, Complex)

複素数を別の複素数で除算し、その結果を返します。Divides one complex number by another and returns the result.

次の例では、複素数の配列内の各要素によって複素数を除算しています。The following example divides a complex number by each element in an array of complex numbers.

using System;
using System.Numerics;

public class Example
{
   public static void Main()
   {
      Complex c1 = new Complex(1.2, 2.3);
      Complex[] values = { new Complex(1.2, 2.3), 
                           new Complex(0.5, 0.75), 
                           new Complex(3.0, -5.0) };
      foreach (Complex c2 in values)
         Console.WriteLine("{0} / {1} = {2:N2}", c1, c2, 
                           Complex.Divide(c1, c2));
   }
}
// The example displays the following output:
//       (1.2, 2.3) / (1.2, 2.3) = (1.00, 0.00)
//       (1.2, 2.3) / (0.5, 0.75) = (2.86, 0.31)
//       (1.2, 2.3) / (3, -5) = (-0.23, 0.38)
Imports System.Numerics

Module Example
   Public Sub Main()
      Dim c1 As New Complex(1.2, 2.3)
      Dim values() As Complex = { New Complex(1.2, 2.3), 
                                  New Complex(0.5, 0.75), 
                                  New Complex(3.0, -5.0) }
      For Each c2 In values
         Console.WriteLine("{0} / {1} = {2:N2}", c1, c2, 
                           Complex.Divide(c1, c2))
      Next
   End Sub
End Module
' The example displays the following output:
'       (1.2, 2.3) / (1.2, 2.3) = (1.00, 0.00)
'       (1.2, 2.3) / (0.5, 0.75) = (2.86, 0.31)
'       (1.2, 2.3) / (3, -5) = (-0.23, 0.38)

注釈

メソッドDivideを使用すると、複雑な数値を含む除算演算を実行できます。The Divide methods allow performing division operations that involve complex numbers.

商の計算によって、実数または虚数のいずれかのコンポーネントでオーバーフローが発生した場合、そのDouble.PositiveInfinityコンポーネントDouble.NegativeInfinityの値はまたはになります。If the calculation of the quotient results in an overflow in either the real or imaginary component, the value of that component is either Double.PositiveInfinity or Double.NegativeInfinity.

メソッドDivideは、カスタム演算子をサポートしていない言語で使用できます。The Divide method can be used by languages that do not support custom operators. この動作は、除算演算子を使用した除算と同じです。Its behavior is identical to division using the division operator.

1 Divideつの double を受け取るメソッドは、2つの複素数を受け取るメソッドよりも効率的です。The Divide methods that receive one double are more efficient than the methods that receive two complex numbers.

Divide(Double, Complex) Divide(Double, Complex) Divide(Double, Complex) Divide(Double, Complex)

倍精度実数を複素数で除算し、その結果を返します。Divides one double-precision real number by a complex number and returns the result.

public:
 static System::Numerics::Complex Divide(double dividend, System::Numerics::Complex divisor);
public static System.Numerics.Complex Divide (double dividend, System.Numerics.Complex divisor);
static member Divide : double * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Divide (dividend As Double, divisor As Complex) As Complex

パラメーター

dividend
Double Double Double Double

被除数の倍精度実数。The double-precision real number to be divided.

divisor
Complex Complex Complex Complex

除数の複素数。The complex number to divide by.

戻り値

除算の商。The quotient of the division.

注釈

実数の除算 (複素数 a + 0i と見なすことができます) と複素数 (c + di) では、次の形式が使用されます。The division of a real number (which can be regarded as the complex number a + 0i) and a complex number (c + di) takes the following form:

(ac/(c2 + d2)) + (ad/(c2 + d2) i(ac / (c2 + d2)) + (ad / (c2 + d2)i

こちらもご覧ください

Divide(Complex, Double) Divide(Complex, Double) Divide(Complex, Double) Divide(Complex, Double)

複素数を倍精度実数で除算し、その結果を返します。Divides one complex number by a double-precision real number and returns the result.

public:
 static System::Numerics::Complex Divide(System::Numerics::Complex dividend, double divisor);
public static System.Numerics.Complex Divide (System.Numerics.Complex dividend, double divisor);
static member Divide : System.Numerics.Complex * double -> System.Numerics.Complex
Public Shared Function Divide (dividend As Complex, divisor As Double) As Complex

パラメーター

dividend
Complex Complex Complex Complex

被除数の複素数。The complex number to be divided.

divisor
Double Double Double Double

除数の倍精度実数。The double-precision real number to divide by.

戻り値

除算の商。The quotient of the division.

注釈

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

(ac/c2) + (bc/c2) i(ac / c2) + (bc / c2)i

こちらもご覧ください

Divide(Complex, Complex) Divide(Complex, Complex) Divide(Complex, Complex) Divide(Complex, Complex)

複素数を別の複素数で除算し、その結果を返します。Divides one complex number by another and returns the result.

public:
 static System::Numerics::Complex Divide(System::Numerics::Complex dividend, System::Numerics::Complex divisor);
public static System.Numerics.Complex Divide (System.Numerics.Complex dividend, System.Numerics.Complex divisor);
static member Divide : System.Numerics.Complex * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Divide (dividend As Complex, divisor As Complex) As Complex

パラメーター

dividend
Complex Complex Complex Complex

被除数の複素数。The complex number to be divided.

divisor
Complex Complex Complex Complex

除数の複素数。The complex number to divide by.

戻り値

除算の商。The quotient of the division.

注釈

複素数 (a + bi) を2番目の複素数 (c + di) で除算すると、次のような形式になります。The division of a complex number, a + bi, by a second complex number, number, c + di, takes the following form:

((ac + bd)/(c2 + d2)) + ((bc-ad)/(c2 + d2) i((ac + bd) / (c2 + d2)) + ((bc - ad) / (c2 + d2)i

こちらもご覧ください

適用対象