Complex.Multiply Complex.Multiply Complex.Multiply Complex.Multiply Method

定義

指定した数値を、指定した別の数値で乗算します。数値の少なくとも 1 つは複素数であり、他の数値には倍精度実数を使用できます。Multiplies 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.

オーバーロード

Multiply(Complex, Complex) Multiply(Complex, Complex) Multiply(Complex, Complex) Multiply(Complex, Complex)

2 つの複素数の積を返します。Returns the product of two complex numbers.

Multiply(Double, Complex) Multiply(Double, Complex) Multiply(Double, Complex) Multiply(Double, Complex)

倍精度実数と複素数の積を返します。Returns the product of a double-precision real number and a complex number.

Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double)

複素数と倍精度実数の積を返します。Returns the product of a complex number and a double-precision real number.

次の例では、複素数の配列内の各要素によって複素数を乗算しています。The following example multiples 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 number1 = new Complex(8.3, 17.5);
      Complex[] numbers = { new Complex(1.4, 6.3), 
                            new Complex(-2.7, 1.8), 
                            new Complex(3.1, -2.1) };
      foreach (Complex number2 in numbers)
         Console.WriteLine("{0} x {1} = {2}", number1, number2, 
                           Complex.Multiply(number1, number2));
   }
}
// The example displays the following output:
//       (8.3, 17.5) x (1.4, 6.3) = (-98.63, 76.79)
//       (8.3, 17.5) x (-2.7, 1.8) = (-53.91, -32.31)
//       (8.3, 17.5) x (3.1, -2.1) = (62.48, 36.82)
Imports System.Numerics

Module Example
   Public Sub Main()
      Dim number1 As New Complex(8.3, 17.5)
      Dim numbers() As Complex = { New Complex(1.4, 6.3), 
                                   New Complex(-2.7, 1.8), 
                                   New Complex(3.1, -2.1) }
      For Each number2 In numbers
         Console.WriteLine("{0} x {1} = {2}", number1, number2, 
                           Complex.Multiply(number1, number2))
      Next
   End Sub
End Module
' The example displays the following output:
'       (8.3, 17.5) x (1.4, 6.3) = (-98.63, 76.79)
'       (8.3, 17.5) x (-2.7, 1.8) = (-53.91, -32.31)
'       (8.3, 17.5) x (3.1, -2.1) = (62.48, 36.82)

注釈

メソッドMultiplyを使用すると、複素数を含む乗算演算を実行できます。The Multiply methods allow performing multiplication operations that involve complex numbers.

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

メソッドMultiplyは、カスタム演算子をサポートしない言語に対して実装されます。The Multiply method is implemented for languages that do not support custom operators. その動作は、乗算演算子を使用した乗算と同じです。Its behavior is identical to multiplication using the multiplication operator.

Multiply(Complex, Complex) Multiply(Complex, Complex) Multiply(Complex, Complex) Multiply(Complex, Complex)

2 つの複素数の積を返します。Returns the product of two complex numbers.

public:
 static System::Numerics::Complex Multiply(System::Numerics::Complex left, System::Numerics::Complex right);
public static System.Numerics.Complex Multiply (System.Numerics.Complex left, System.Numerics.Complex right);
static member Multiply : System.Numerics.Complex * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Multiply (left As Complex, right As Complex) As Complex

パラメーター

left
Complex Complex Complex Complex

乗算する 1 番目の複素数。The first complex number to multiply.

right
Complex Complex Complex Complex

乗算する 2 番目の複素数。The second complex number to multiply.

戻り値

leftright の 2 つのパラメーターの積。The product of the left and right parameters.

注釈

複素数、a + bi、および2番目の複素数 (c + di) の乗算は、次の形式になります。The multiplication of a complex number, a + bi, and a second complex number, c + di, takes the following form:

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

こちらもご覧ください

Multiply(Double, Complex) Multiply(Double, Complex) Multiply(Double, Complex) Multiply(Double, Complex)

倍精度実数と複素数の積を返します。Returns the product of a double-precision real number and a complex number.

public:
 static System::Numerics::Complex Multiply(double left, System::Numerics::Complex right);
public static System.Numerics.Complex Multiply (double left, System.Numerics.Complex right);
static member Multiply : double * System.Numerics.Complex -> System.Numerics.Complex
Public Shared Function Multiply (left As Double, right As Complex) As Complex

パラメーター

left
Double Double Double Double

乗算する倍精度実数。The double-precision real number to multiply.

right
Complex Complex Complex Complex

乗算する複素数。The complex number to multiply.

戻り値

leftright の 2 つのパラメーターの積。The product of the left and right parameters.

注釈

実数 (複素数 a + 0i と見なすことができる) と複素数 (c + di) は、次のような形式になります。The multiplication 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 + adiac + adi

こちらもご覧ください

Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double)

複素数と倍精度実数の積を返します。Returns the product of a complex number and a double-precision real number.

public:
 static System::Numerics::Complex Multiply(System::Numerics::Complex left, double right);
public static System.Numerics.Complex Multiply (System.Numerics.Complex left, double right);
static member Multiply : System.Numerics.Complex * double -> System.Numerics.Complex
Public Shared Function Multiply (left As Complex, right As Double) As Complex

パラメーター

left
Complex Complex Complex Complex

乗算する複素数。The complex number to multiply.

right
Double Double Double Double

乗算する倍精度実数。The double-precision real number to multiply.

戻り値

leftright の 2 つのパラメーターの積。The product of the left and right parameters.

注釈

複素数 (a + bi) と実数 (複素数 c + 0i と見なすことができる) は、次のような形式になります。The multiplication 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 + bciac + bci

こちらもご覧ください

適用対象