Complex Complex Complex Complex Struct

定義

複素数を表します。Represents a complex number.

public value class Complex : IEquatable<System::Numerics::Complex>, IFormattable
[System.Serializable]
public struct Complex : IEquatable<System.Numerics.Complex>, IFormattable
type Complex = struct
    interface IFormattable
Public Structure Complex
Implements IEquatable(Of Complex), IFormattable
継承
属性
実装

注釈

複素数の実数部と虚数部で構成される数値です。A complex number is a number that comprises a real number part and an imaginary number part. 複素数の値 z が z の形式で記述された通常 = x + イ語、場所xy実数の場合とプロパティを持つ虚数部単位i2 =-1。A complex number z is usually written in the form z = x + yi, where x and y are real numbers, and i is the imaginary unit that has the property i2 = -1. 複素数の実数部がによって表されるx、複素数の虚数部がによって表されるとyします。The real part of the complex number is represented by x, and the imaginary part of the complex number is represented by y.

Complex型はデカルト座標系 (実際、虚数部) を使用してインスタンス化して、複素数を操作するときにします。The Complex type uses the Cartesian coordinate system (real, imaginary) when instantiating and manipulating complex numbers. 複素数の複素平面と呼ばれる 2 次元座標システムでのポイントとして表現できます。A complex number can be represented as a point in a two-dimensional coordinate system, which is known as the complex plane. 複素数の実数部が x 軸 (水平軸) に配置されているし、虚数部を表しますが、y 軸 (縦軸) に配置されています。The real part of the complex number is positioned on the x-axis (the horizontal axis), and the imaginary part is positioned on the y-axis (the vertical axis).

極座標グラフの座標系を使用してその絶対値に基づく複素平面の任意の時点を表現こともできます。Any point in the complex plane can also be expressed based on its absolute value, by using the polar coordinate system. 極座標グラフの座標では、ポイントは 2 つの数値によって特徴付けられます。In polar coordinates, a point is characterized by two numbers:

  • その大きさは、配信元からの距離です (0, 0、または、x 軸と y 軸の交差ポイント)。Its magnitude, which is the distance of the point from the origin (that is, 0,0, or the point at which the x-axis and the y-axis intersect).

  • 、そのフェーズは、実軸と、ポイントに原点から描画される直線の角度。Its phase, which is the angle between the real axis and the line drawn from the origin to the point.

複素数の値をインスタンス化します。Instantiating a Complex Number

次の方法のいずれかの値から複素数へ値を割り当てることができます。You can assign a value to a complex number in one of the following ways:

  • 2 つを渡すことによってDoubleコンス トラクターの値。By passing two Double values to its constructor. 最初の値は、複素数の実数部を表し、2 番目の値がその虚数部を表します。The first value represents the real part of the complex number, and the second value represents its imaginary part. これらの値は、複素数の 2 次元のデカルト座標系内の位置を表します。These values represent the position of the complex number in the two-dimensional Cartesian coordinate system.

  • 静的なを呼び出すことによって (Shared Visual Basic で)Complex.FromPolarCoordinates極座標から複素数を作成するメソッド。By calling the static (Shared in Visual Basic) Complex.FromPolarCoordinates method to create a complex number from its polar coordinates.

  • 割り当てることで、 ByteSByteInt16UInt16Int32UInt32Int64UInt64Single、またはDouble値をComplexオブジェクト。By assigning a Byte, SByte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Single, or Double value to a Complex object. 値になります、複素数の実数部と虚数部が 0 と等しい。The value becomes the real part of the complex number, and its imaginary part equals 0.

  • キャスト (C#) または (Visual Basic) での変換によって、DecimalまたはBigInteger値をComplexオブジェクト。By casting (in C#) or converting (in Visual Basic) a Decimal or BigInteger value to a Complex object. 値になります、複素数の実数部と虚数部が 0 と等しい。The value becomes the real part of the complex number, and its imaginary part equals 0.

  • メソッドまたは演算子によって返される複素数の値を割り当てることで、Complexオブジェクト。By assigning the complex number that is returned by a method or operator to a Complex object. たとえば、Complex.Addを 2 つの複素数の和である複素数の値を返す静的メソッドは、およびComplex.Addition演算子が 2 つの複素数を加算し、結果を返します。For example, Complex.Add is a static method that returns a complex number that is the sum of two complex numbers, and the Complex.Addition operator adds two complex numbers and returns the result.

次の例では、これら 5 つの方法の値から複素数への値を割り当てることの各を示します。The following example demonstrates each of these five ways of assigning a value to a complex number.

using System;
using System.Numerics;

public class Example
{
   public static void Main()
   {
      // Create a complex number by calling its class constructor.
      Complex c1 = new Complex(12, 6);
      Console.WriteLine(c1);
      
      // Assign a Double to a complex number.
      Complex c2 = 3.14;
      Console.WriteLine(c2);
      
      // Cast a Decimal to a complex number.
      Complex c3 = (Complex) 12.3m;
      Console.WriteLine(c3);
      
      // Assign the return value of a method to a Complex variable.
      Complex c4 = Complex.Pow(Complex.One, -1);
      Console.WriteLine(c4);
      
      // Assign the value returned by an operator to a Complex variable.
      Complex c5 = Complex.One + Complex.One;
      Console.WriteLine(c5);

      // Instantiate a complex number from its polar coordinates.
      Complex c6 = Complex.FromPolarCoordinates(10, .524);
      Console.WriteLine(c6);
   }
}
// The example displays the following output:
//       (12, 6)
//       (3.14, 0)
//       (12.3, 0)
//       (1, 0)
//       (2, 0)
//       (8.65824721882145, 5.00347430269914)
Imports System.Numerics

Module Example
   Public Sub Main()
      ' Create a complex number by calling its class constructor.
      Dim c1 As New Complex(12, 6)
      Console.WriteLine(c1)
      
      ' Assign a Double to a complex number.
      Dim c2 As Complex = 3.14
      Console.WriteLine(c2)
      
      ' Cast a Decimal to a complex number.
      Dim c3 As Complex = CType(12.3d, Complex)
      Console.WriteLine(c3)
      
      ' Assign the return value of a method to a Complex variable.
      Dim c4 As Complex = Complex.Pow(Complex.One, -1)
      Console.WriteLine(c4)
      
      ' Assign the value returned by an operator to a Complex variable.
      Dim c5 As Complex = Complex.One + Complex.One
      Console.WriteLine(c5)

      ' Instantiate a complex number from its polar coordinates.
      Dim c6 As Complex = Complex.FromPolarCoordinates(10, .524)
      Console.WriteLine(c6)
   End Sub
End Module
' The example displays the following output:
'       (12, 6)
'       (3.14, 0)
'       (12.3000001907349, 0)
'       (1, 0)
'       (2, 0)
'       (8.65824721882145, 5.00347430269914)

複素数の操作Operations with Complex Numbers

Complex In .NET Framework の構造には、次の機能を提供するメンバーが含まれます。The Complex structure in the .NET Framework includes members that provide the following functionality:

  • 等しいかどうかを判断する 2 つの複素数を比較するメソッド。Methods to compare two complex numbers to determine whether they are equal.

  • 複素数の算術演算を実行する演算子。Operators to perform arithmetic operations on complex numbers. Complex 演算子を使用して、加算、減算、乗算、除算、および複素数の単項否定を実行できます。Complex operators enable you to perform addition, subtraction, multiplication, division, and unary negation with complex numbers.

  • 複素数に数値の他の操作を実行するメソッド。Methods to perform other numerical operations on complex numbers. だけでなく 4 つの基本的な算術演算を指定した複素数を発生させる、複素数の平方根を求めるおよび複素数の絶対値を取得することができます。In addition to the four basic arithmetic operations, you can raise a complex number to a specified power, find the square root of a complex number, and get the absolute value of a complex number.

  • 複素数の三角関数の操作を実行するメソッド。Methods to perform trigonometric operations on complex numbers. たとえば、複素数の値によって表される角度のタンジェントを計算できます。For example, you can calculate the tangent of an angle represented by a complex number.

に、注意してください、RealImaginaryプロパティは読み取り専用で、既存の値を変更することはできませんComplexオブジェクト。Note that, because the Real and Imaginary properties are read-only, you cannot modify the value of an existing Complex object. 操作を実行するすべてのメソッド、Complex番号、戻り値の型の場合Complexを返す新しいComplex数。All methods that perform an operation on a Complex number, if their return value is of type Complex, return a new Complex number.

有効桁数と複素数Precision and Complex Numbers

複素数の実数部と虚数部の部分は、2 つの倍精度浮動小数点値で表されます。The real and imaginary parts of a complex number are represented by two double-precision floating-point values. つまり、Complex倍精度浮動小数点の値などの値には、数値の操作の結果の精度が失われる可能性が。This means that Complex values, like double-precision floating-point values, can lose precision as a result of numerical operations. つまり、厳密なことの 2 つの等価比較Complex精度が失われる原因 2 つの値の差である場合でも、値は失敗可能性があります。This means that strict comparisons for equality of two Complex values may fail, even if the difference between the two values is due to a loss of precision. 詳細については、「Double」を参照してください。For more information, see Double.

たとえば、数値の対数の指数演算を実行すると、元の番号を返す必要があります。For example, performing exponentiation on the logarithm of a number should return the original number. ただし、場合によっては、浮動小数点値の有効桁数の損失と可能性があります 2 つの値では、若干の違いは次の例を示しています。However, in some cases, the loss of precision of floating-point values can cause slight differences between the two values, as the following example illustrates.

Complex value = new Complex(Double.MinValue/2, Double.MinValue/2);
Complex value2 = Complex.Exp(Complex.Log(value));
Console.WriteLine("{0} \n{1} \nEqual: {2}", value, value2, 
                                            value == value2);
// The example displays the following output:
//    (-8.98846567431158E+307, -8.98846567431158E+307)
//    (-8.98846567431161E+307, -8.98846567431161E+307)
//    Equal: False
Dim value As New Complex(Double.MinValue/2, Double.MinValue/2)
Dim value2 As Complex = Complex.Exp(Complex.Log(value))
Console.WriteLine("{0} {3}{1} {3}Equal: {2}", value, value2, 
                                              value = value2,
                                              vbCrLf)
' The example displays the following output:
'    (-8.98846567431158E+307, -8.98846567431158E+307)
'    (-8.98846567431161E+307, -8.98846567431161E+307)
'    Equal: False

同様に、次の例での平方根を計算する、Complex番号、32 ビット、IA64 のバージョンの .NET Framework で若干異なる結果を生成します。Similarly, the following example, which calculates the square root of a Complex number, produces slightly different results on the 32-bit and IA64 versions of the .NET Framework.

Complex minusOne = new Complex(-1, 0);
Console.WriteLine(Complex.Sqrt(minusOne));
// The example displays the following output:
//    (6.12303176911189E-17, 1) on 32-bit systems.
//    (6.12323399573677E-17,1) on IA64 systems.
Dim minusOne As New Complex(-1, 0)
Console.WriteLine(Complex.Sqrt(minusOne))
' The example displays the following output:
'    (6.12303176911189E-17, 1) on 32-bit systems.
'    (6.12323399573677E-17,1) on IA64 systems.

複素数、無限大および NaNComplex Numbers, Infinity, and NaN

複素数の実数部と虚数部の部分がによって表されるDouble値。The real and imaginary parts of a complex number are represented by Double values. 範囲だけでなくDouble.MinValueDouble.MaxValue、複素数の実数部または虚数部の一部の値を持つことができますDouble.PositiveInfinityDouble.NegativeInfinity、またはDouble.NaNします。In addition to ranging from Double.MinValue to Double.MaxValue, the real or imaginary part of a complex number can have a value of Double.PositiveInfinity, Double.NegativeInfinity, or Double.NaN. Double.PositiveInfinityDouble.NegativeInfinity、およびDouble.NaN算術演算または三角関数演算ですべてを伝達します。Double.PositiveInfinity, Double.NegativeInfinity, and Double.NaN all propagate in any arithmetic or trigonometric operation.

次の例では、除算Zero複素数の実数部と虚数部の部分は、どちらも生成Double.NaNします。In the following example, division by Zero produces a complex number whose real and imaginary parts are both Double.NaN. その結果、複素数の実数部と虚数部の部分はこの値で乗算を実行する生成もDouble.NaNします。As a result, performing multiplication with this value also produces a complex number whose real and imaginary parts are Double.NaN. 同様に、範囲の乗算を実行する、Double型生成の複素数の実数部がDouble.NaN虚数部とDouble.PositiveInfinityします。Similarly, performing a multiplication that overflows the range of the Double type produces a complex number whose real part is Double.NaN and whose imaginary part is Double.PositiveInfinity. 複素数の実数部を返します、その後この複素数の値で除算を実行するDouble.NaN虚数部とDouble.PositiveInfinityします。Subsequently performing division with this complex number returns a complex number whose real part is Double.NaN and whose imaginary part is Double.PositiveInfinity.

using System;
using System.Numerics;

public class Example
{
   public static void Main()
   {
      Complex c1 = new Complex(Double.MaxValue / 2, Double.MaxValue /2);

      Complex c2 = c1 / Complex.Zero;
      Console.WriteLine(c2.ToString());
      c2 = c2 * new Complex(1.5, 1.5);
      Console.WriteLine(c2.ToString());
      Console.WriteLine();
      
      Complex c3 = c1 * new Complex(2.5, 3.5);
      Console.WriteLine(c3.ToString());
      c3 = c3 + new Complex(Double.MinValue / 2, Double.MaxValue / 2); 
      Console.WriteLine(c3);
   }
}
// The example displays the following output:
//       (NaN, NaN)
//       (NaN, NaN)
//       (NaN, Infinity)
//       (NaN, Infinity)
Imports System.Numerics

Module Example
   Public Sub Main()
      Dim c1 As Complex = New Complex(Double.MaxValue / 2, Double.MaxValue /2)

      Dim c2 As Complex = c1 / Complex.Zero
      Console.WriteLine(c2.ToString())
      c2 = c2 * New Complex(1.5, 1.5)
      Console.WriteLine(c2.ToString())
      Console.WriteLine()
      
      Dim c3 As Complex = c1 * New Complex(2.5, 3.5)
      Console.WriteLine(c3.ToString())
      c3 = c3 + New Complex(Double.MinValue / 2, Double.MaxValue / 2) 
      Console.WriteLine(c3)     
   End Sub
End Module
' The example displays the following output:
'       (NaN, NaN)
'       (NaN, NaN)
'
'       (NaN, Infinity)
'       (NaN, Infinity)

無効なまたは範囲をオーバーフローする複素数の算術演算、Doubleデータ型が例外をスローしないでください。Mathematical operations with complex numbers that are invalid or that overflow the range of the Double data type do not throw an exception. 代わりに、返す、 Double.PositiveInfinityDouble.NegativeInfinity、またはDouble.NaN次の条件。Instead, they return a Double.PositiveInfinity, Double.NegativeInfinity, or Double.NaN under the following conditions:

これが、メソッドによって実行される中間の計算に適用されることに注意してください。Note that this applies to any intermediate calculations performed by a method. 乗算などnew Complex(9e308, 9e308) and new Complex(2.5, 3.5)数式を使用して (ac - bd) + (ad + bc) しました。For example, the multiplication of new Complex(9e308, 9e308) and new Complex(2.5, 3.5) uses the formula (ac - bd) + (ad + bc)i. 乗算した結果、実際のコンポーネントの計算の評価式 9 e 308 * 2.5 - 9 e 308 * 3.5。The calculation of the real component that results from the multiplication evaluates the expression 9e308 * 2.5 - 9e308 * 3.5. この式では各中間の乗算を返しますDouble.PositiveInfinityから減算する試行Double.PositiveInfinityからDouble.PositiveInfinity返しますDouble.NaNします。Each intermediate multiplication in this expression returns Double.PositiveInfinity, and the attempt to subtract Double.PositiveInfinity from Double.PositiveInfinity returns Double.NaN.

複素数の値を書式設定Formatting a Complex Number

既定では、複雑な数値の文字列形式は、形式をとり(実際, 虚数)ここで、実際虚数はの文字列表現です、Double複素数の実数部と虚数コンポーネントを構成する値。By default, the string representation of a complex number takes the form (real, imaginary), where real and imaginary are the string representations of the Double values that form the complex number's real and imaginary components. 一部のオーバー ロード、ToStringメソッドには、これらの文字列表現のカスタマイズができるようにDouble特定のカルチャの書式指定規則を反映するように、または標準またはカスタムの数値によって定義された特定の形式で表示される値書式指定文字列。Some overloads of the ToString method allow customization of the string representations of these Double values to reflect the formatting conventions of a particular culture or to appear in a particular format defined by a standard or custom numeric format string. (詳細については、次を参照してくださいStandard Numeric Format Stringsカスタム数値書式指定文字列。)。(For more information, see Standard Numeric Format Strings and Custom Numeric Format Strings.)

複素数の値の文字列表現を表現する一般的な方法のいずれかの形式を + bi ここでが複素数の実数部、および b は複素数の虚数要素。One of the more common ways of expressing the string representation of a complex number takes the form a + bi, where a is the complex number's real component, and b is the complex number's imaginary component. 電気工学の値から複素数を最もよくとして表す、bj + です。In electrical engineering, a complex number is most commonly expressed as a + bj. これら 2 つの形式のいずれかで複雑な数値の文字列表現を返すことができます。You can return the string representation of a complex number in either of these two forms. これを行うには、カスタム書式プロバイダーを実装して定義、ICustomFormatterIFormatProviderインターフェイス、および、呼び出し、String.Format(IFormatProvider, String, Object[])メソッド。To do this, define a custom format provider by implementing the ICustomFormatter and IFormatProvider interfaces, and then call the String.Format(IFormatProvider, String, Object[]) method.

次の例では、定義、ComplexFormatterいずれかの形式の文字列としての複素数を表すクラス + bi または + bj します。The following example defines a ComplexFormatter class that represents a complex number as a string in the form of either a + bi or a + bj.

using System;
using System.Numerics;

public class ComplexFormatter :IFormatProvider, ICustomFormatter
{
   public object GetFormat(Type formatType) 
   {   
      if (formatType == typeof(ICustomFormatter))
         return this;
      else
         return null;
   }
   
   public string Format(string format, object arg, 
                        IFormatProvider provider)
   {
      if (arg is Complex)
      {
         Complex c1 = (Complex) arg; 
         // Check if the format string has a precision specifier.
         int precision;
         string fmtString = String.Empty;
         if (format.Length > 1) {
            try {
               precision = Int32.Parse(format.Substring(1));
            }
            catch (FormatException) {
               precision = 0;
            }
            fmtString = "N" + precision.ToString();
         }
         if (format.Substring(0, 1).Equals("I", StringComparison.OrdinalIgnoreCase))
            return c1.Real.ToString(fmtString) + " + " + c1.Imaginary.ToString(fmtString) + "i";
         else if (format.Substring(0, 1).Equals("J", StringComparison.OrdinalIgnoreCase))
            return c1.Real.ToString(fmtString) + " + " + c1.Imaginary.ToString(fmtString) + "j";
         else
            return c1.ToString(format, provider);
      }
      else
      {
         if (arg is IFormattable)
            return ((IFormattable) arg).ToString(format, provider);
         else if (arg != null) 
            return arg.ToString();
         else
            return String.Empty;
      }                        
   }
}
Imports System.Numerics

Public Class ComplexFormatter 
             Implements IFormatProvider, ICustomFormatter
   
   Public Function GetFormat(formatType As Type) As Object _
                   Implements IFormatProvider.GetFormat
      If formatType Is GetType(ICustomFormatter) Then
         Return Me
      Else
         Return Nothing
      End If
   End Function
   
   Public Function Format(fmt As String, arg As Object, 
                          provider As IFormatProvider) As String _
                   Implements ICustomFormatter.Format
      If TypeOf arg Is Complex Then
         Dim c1 As Complex = DirectCast(arg, Complex)
         ' Check if the format string has a precision specifier.
         Dim precision As Integer
         Dim fmtString As String = String.Empty
         If fmt.Length > 1 Then
            Try
               precision = Int32.Parse(fmt.Substring(1))
            Catch e As FormatException
               precision = 0
            End Try
            fmtString = "N" + precision.ToString()
         End If
         If fmt.Substring(0, 1).Equals("I", StringComparison.OrdinalIgnoreCase) Then
            Return c1.Real.ToString(fmtString) + " + " + c1.Imaginary.ToString(fmtString) + "i"
         ElseIf fmt.Substring(0, 1).Equals("J", StringComparison.OrdinalIgnoreCase) Then
            Return c1.Real.ToString(fmtString) + " + " + c1.Imaginary.ToString(fmtString) + "j"
         Else
            Return c1.ToString(fmt, provider)
         End If
      Else
         If Typeof arg Is IFormattable Then
            Return DirectCast(arg, IFormattable).ToString(fmt, provider)
         ElseIf arg IsNot Nothing Then
            Return arg.ToString()
         Else
            Return String.Empty
         End If   
      End If                        
   End Function
End Class

次の例では、このカスタムのフォーマッタを使用して、複素数の文字列形式を表示します。The following example then uses this custom formatter to display the string representation of a complex number.

public class Example
{
   public static void Main()
   {
      Complex c1 = new Complex(12.1, 15.4);
      Console.WriteLine("Formatting with ToString():       " + 
                        c1.ToString());
      Console.WriteLine("Formatting with ToString(format): " + 
                        c1.ToString("N2"));
      Console.WriteLine("Custom formatting with I0:        " + 
                        String.Format(new ComplexFormatter(), "{0:I0}", c1));
      Console.WriteLine("Custom formatting with J3:        " + 
                        String.Format(new ComplexFormatter(), "{0:J3}", c1));
   }
}
// The example displays the following output:
//    Formatting with ToString():       (12.1, 15.4)
//    Formatting with ToString(format): (12.10, 15.40)
//    Custom formatting with I0:        12 + 15i
//    Custom formatting with J3:        12.100 + 15.400j
Module Example
   Public Sub Main()
      Dim c1 As Complex = New Complex(12.1, 15.4)
      Console.WriteLine("Formatting with ToString():       " + 
                        c1.ToString())
      Console.WriteLine("Formatting with ToString(format): " + 
                        c1.ToString("N2"))
      Console.WriteLine("Custom formatting with I0:        " + 
                        String.Format(New ComplexFormatter(), "{0:I0}", c1))
      Console.WriteLine("Custom formatting with J3:        " + 
                        String.Format(New ComplexFormatter(), "{0:J3}", c1))
   End Sub
End Module
' The example displays the following output:
'    Formatting with ToString():       (12.1, 15.4)
'    Formatting with ToString(format): (12.10, 15.40)
'    Custom formatting with I0:        12 + 15i
'    Custom formatting with J3:        12.100 + 15.400j

コンストラクター

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

指定した実数値と虚数値を使用して Complex 構造体の新しいインスタンスを初期化します。Initializes a new instance of the Complex structure using the specified real and imaginary values.

フィールド

ImaginaryOne ImaginaryOne ImaginaryOne ImaginaryOne

実数が 0 で虚数が 1 の新しい Complex インスタンスを返します。Returns a new Complex instance with a real number equal to zero and an imaginary number equal to one.

Infinity Infinity Infinity Infinity
NaN NaN NaN NaN
One One One One

実数が 1 で虚数が 0 の新しい Complex インスタンスを返します。Returns a new Complex instance with a real number equal to one and an imaginary number equal to zero.

Zero Zero Zero Zero

実数が 0 で虚数が 0 の新しい Complex インスタンスを返します。Returns a new Complex instance with a real number equal to zero and an imaginary number equal to zero.

プロパティ

Imaginary Imaginary Imaginary Imaginary

現在の Complex オブジェクトの虚数部を取得します。Gets the imaginary component of the current Complex object.

Magnitude Magnitude Magnitude Magnitude

複素数の大きさ (または絶対値) を取得します。Gets the magnitude (or absolute value) of a complex number.

Phase Phase Phase Phase

複素数のフェーズを取得します。Gets the phase of a complex number.

Real Real Real Real

現在の Complex オブジェクトの実数部を取得します。Gets the real component of the current Complex object.

メソッド

Abs(Complex) Abs(Complex) Abs(Complex) Abs(Complex)

複素数の絶対値 (または大きさ) を取得します。Gets the absolute value (or magnitude) of a complex number.

Acos(Complex) Acos(Complex) Acos(Complex) Acos(Complex)

指定した複素数のアーク コサインである角度を返します。Returns the angle that is the arc cosine of the specified complex number.

Add(Double, Complex) Add(Double, Complex) Add(Double, Complex) Add(Double, Complex)
Add(Complex, Double) Add(Complex, Double) Add(Complex, Double) Add(Complex, Double)
Add(Complex, Complex) Add(Complex, Complex) Add(Complex, Complex) Add(Complex, Complex)

2 つの複素数を加算し、その結果を返します。Adds two complex numbers and returns the result.

Asin(Complex) Asin(Complex) Asin(Complex) Asin(Complex)

指定した複素数のアーク サインである角度を返します。Returns the angle that is the arc sine of the specified complex number.

Atan(Complex) Atan(Complex) Atan(Complex) Atan(Complex)

指定した複素数のアーク タンジェントである角度を返します。Returns the angle that is the arc tangent of the specified complex number.

Conjugate(Complex) Conjugate(Complex) Conjugate(Complex) Conjugate(Complex)

複素数の共役を計算し、結果を返します。Computes the conjugate of a complex number and returns the result.

Cos(Complex) Cos(Complex) Cos(Complex) Cos(Complex)

指定した複素数のコサインを返します。Returns the cosine of the specified complex number.

Cosh(Complex) Cosh(Complex) Cosh(Complex) Cosh(Complex)

指定した複素数のハイパーボリック コサインを返します。Returns the hyperbolic cosine of the specified complex number.

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

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

Equals(Complex) Equals(Complex) Equals(Complex) Equals(Complex)

現在のインスタンスの値と指定した複素数の値が等しいかどうかを示す値を返します。Returns a value that indicates whether the current instance and a specified complex number have the same value.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

現在のインスタンスの値と指定されたオブジェクトの値が等しいかどうかを示す値を返します。Returns a value that indicates whether the current instance and a specified object have the same value.

Exp(Complex) Exp(Complex) Exp(Complex) Exp(Complex)

e を指定した複素数で累乗した値を返します。Returns e raised to the power specified by a complex number.

FromPolarCoordinates(Double, Double) FromPolarCoordinates(Double, Double) FromPolarCoordinates(Double, Double) FromPolarCoordinates(Double, Double)

ポイントの極座標から複素数を作成します。Creates a complex number from a point's polar coordinates.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

現在の Complex オブジェクトのハッシュ コードを返します。Returns the hash code for the current Complex object.

IsFinite(Complex) IsFinite(Complex) IsFinite(Complex) IsFinite(Complex)
IsInfinity(Complex) IsInfinity(Complex) IsInfinity(Complex) IsInfinity(Complex)
IsNaN(Complex) IsNaN(Complex) IsNaN(Complex) IsNaN(Complex)
Log(Complex) Log(Complex) Log(Complex) Log(Complex)

指定した複素数の自然 (底 e) 対数を返します。Returns the natural (base e) logarithm of a specified complex number.

Log(Complex, Double) Log(Complex, Double) Log(Complex, Double) Log(Complex, Double)

指定した複素数の指定した底での対数を返します。Returns the logarithm of a specified complex number in a specified base.

Log10(Complex) Log10(Complex) Log10(Complex) Log10(Complex)

指定した複素数の底 10 の対数を返します。Returns the base-10 logarithm of a specified complex 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)
Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double)
Negate(Complex) Negate(Complex) Negate(Complex) Negate(Complex)

指定した複素数の加法に関する逆元を返します。Returns the additive inverse of a specified complex number.

Pow(Complex, Double) Pow(Complex, Double) Pow(Complex, Double) Pow(Complex, Double)

倍精度浮動小数点数で指定した値で複素数を累乗した値を返します。Returns a specified complex number raised to a power specified by a double-precision floating-point number.

Pow(Complex, Complex) Pow(Complex, Complex) Pow(Complex, Complex) Pow(Complex, Complex)

別の複素数で指定した値で複素数を累乗した値を返します。Returns a specified complex number raised to a power specified by a complex number.

Reciprocal(Complex) Reciprocal(Complex) Reciprocal(Complex) Reciprocal(Complex)

複素数の逆数を返します。Returns the multiplicative inverse of a complex number.

Sin(Complex) Sin(Complex) Sin(Complex) Sin(Complex)

指定した複素数のサインを返します。Returns the sine of the specified complex number.

Sinh(Complex) Sinh(Complex) Sinh(Complex) Sinh(Complex)

指定した複素数のハイパーボリック サインを返します。Returns the hyperbolic sine of the specified complex number.

Sqrt(Complex) Sqrt(Complex) Sqrt(Complex) Sqrt(Complex)

指定した複素数の平方根を返します。Returns the square root of a specified complex number.

Subtract(Double, Complex) Subtract(Double, Complex) Subtract(Double, Complex) Subtract(Double, Complex)
Subtract(Complex, Double) Subtract(Complex, Double) Subtract(Complex, Double) Subtract(Complex, Double)
Subtract(Complex, Complex) Subtract(Complex, Complex) Subtract(Complex, Complex) Subtract(Complex, Complex)

複素数を別の複素数から減算し、その結果を返します。Subtracts one complex number from another and returns the result.

Tan(Complex) Tan(Complex) Tan(Complex) Tan(Complex)

指定した複素数のタンジェントを返します。Returns the tangent of the specified complex number.

Tanh(Complex) Tanh(Complex) Tanh(Complex) Tanh(Complex)

指定した複素数のハイパーボリック タンジェントを返します。Returns the hyperbolic tangent of the specified complex number.

ToString() ToString() ToString() ToString()

現在の複素数の値を等価のデカルト形式の文字列形式に変換します。Converts the value of the current complex number to its equivalent string representation in Cartesian form.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

指定したカルチャ固有の書式情報を使用して、現在の複素数を等価のデカルト形式の文字列形式に変換します。Converts the value of the current complex number to its equivalent string representation in Cartesian form by using the specified culture-specific formatting information.

ToString(String) ToString(String) ToString(String) ToString(String)

実数部と虚数部で構成される指定した書式を使用して、現在の複素数を等価のデカルト形式の文字列形式に変換します。Converts the value of the current complex number to its equivalent string representation in Cartesian form by using the specified format for its real and imaginary parts.

ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider)

実数部と虚数部で構成される指定した書式およびカルチャ固有の書式情報を使用して、現在の複素数を等価のデカルト形式の文字列形式に変換します。Converts the value of the current complex number to its equivalent string representation in Cartesian form by using the specified format and culture-specific format information for its real and imaginary parts.

演算子

Addition(Complex, Complex) Addition(Complex, Complex) Addition(Complex, Complex) Addition(Complex, Complex)

2 つの複素数を加算します。Adds two complex numbers.

Addition(Double, Complex) Addition(Double, Complex) Addition(Double, Complex) Addition(Double, Complex)
Addition(Complex, Double) Addition(Complex, Double) Addition(Complex, Double) Addition(Complex, Double)
Division(Complex, Complex) Division(Complex, Complex) Division(Complex, Complex) Division(Complex, Complex)

指定した複素数を別の指定した複素数で除算します。Divides a specified complex number by another specified complex number.

Division(Complex, Double) Division(Complex, Double) Division(Complex, Double) Division(Complex, Double)
Division(Double, Complex) Division(Double, Complex) Division(Double, Complex) Division(Double, Complex)
Equality(Complex, Complex) Equality(Complex, Complex) Equality(Complex, Complex) Equality(Complex, Complex)

2 つの複素数が等しいかどうかを示す値を返します。Returns a value that indicates whether two complex numbers are equal.

Explicit(Decimal to Complex) Explicit(Decimal to Complex) Explicit(Decimal to Complex) Explicit(Decimal to Complex)

Decimal 値から複素数への明示的な型変換を定義します。Defines an explicit conversion of a Decimal value to a complex number.

Explicit(BigInteger to Complex) Explicit(BigInteger to Complex) Explicit(BigInteger to Complex) Explicit(BigInteger to Complex)

BigInteger 値から複素数への明示的な型変換を定義します。Defines an explicit conversion of a BigInteger value to a complex number.

Implicit(UInt64 to Complex) Implicit(UInt64 to Complex) Implicit(UInt64 to Complex) Implicit(UInt64 to Complex)

64 ビット符号なし整数値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a 64-bit unsigned integer to a complex number.

この API は、CLS に準拠していません。This API is not CLS-compliant.

Implicit(UInt32 to Complex) Implicit(UInt32 to Complex) Implicit(UInt32 to Complex) Implicit(UInt32 to Complex)

32 ビット符号なし整数値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a 32-bit unsigned integer to a complex number.

この API は、CLS に準拠していません。This API is not CLS-compliant.

Implicit(UInt16 to Complex) Implicit(UInt16 to Complex) Implicit(UInt16 to Complex) Implicit(UInt16 to Complex)

16 ビット符号なし整数値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a 16-bit unsigned integer to a complex number.

この API は、CLS に準拠していません。This API is not CLS-compliant.

Implicit(Single to Complex) Implicit(Single to Complex) Implicit(Single to Complex) Implicit(Single to Complex)

単精度浮動小数点数から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a single-precision floating-point number to a complex number.

Implicit(SByte to Complex) Implicit(SByte to Complex) Implicit(SByte to Complex) Implicit(SByte to Complex)

符号付きバイト値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a signed byte to a complex number.

この API は、CLS に準拠していません。This API is not CLS-compliant.

Implicit(Int32 to Complex) Implicit(Int32 to Complex) Implicit(Int32 to Complex) Implicit(Int32 to Complex)

32 ビット符号付き整数値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a 32-bit signed integer to a complex number.

Implicit(Int16 to Complex) Implicit(Int16 to Complex) Implicit(Int16 to Complex) Implicit(Int16 to Complex)

16 ビット符号付き整数値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a 16-bit signed integer to a complex number.

Implicit(Double to Complex) Implicit(Double to Complex) Implicit(Double to Complex) Implicit(Double to Complex)

倍精度浮動小数点数から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a double-precision floating-point number to a complex number.

Implicit(Byte to Complex) Implicit(Byte to Complex) Implicit(Byte to Complex) Implicit(Byte to Complex)

符号なしバイト値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of an unsigned byte to a complex number.

Implicit(Int64 to Complex) Implicit(Int64 to Complex) Implicit(Int64 to Complex) Implicit(Int64 to Complex)

64 ビット符号付き整数値から複素数への暗黙の型変換を定義します。Defines an implicit conversion of a 64-bit signed integer to a complex number.

Inequality(Complex, Complex) Inequality(Complex, Complex) Inequality(Complex, Complex) Inequality(Complex, Complex)

2 つの複素数が等しくないかどうかを示す値を返します。Returns a value that indicates whether two complex numbers are not equal.

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

指定した 2 つの複素数を乗算します。Multiplies two specified complex numbers.

Multiply(Double, Complex) Multiply(Double, Complex) Multiply(Double, Complex) Multiply(Double, Complex)
Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double) Multiply(Complex, Double)
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)
UnaryNegation(Complex) UnaryNegation(Complex) UnaryNegation(Complex) UnaryNegation(Complex)

指定した複素数の加法に関する逆元を返します。Returns the additive inverse of a specified complex number.

適用対象