Click or drag to resize
Complex Structure
Represents a complex number.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public struct Complex : IEquatable<Complex>

The Complex type exposes the following members.

Constructors
  NameDescription
Public methodComplex
Initializes a new complex number.
Top
Properties
  NameDescription
Public propertyConjugate
Gets the complex conjugate of the complex number.
Public propertyIm
Gets the imaginary part of the complex number.
Public propertyRe
Gets the real part of the complex number.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the given object represents the same complex number.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Complex)
Determines whether the given complex number is the same.
Public methodGetHashCode
Returns a hash code for the complex number.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Produces a string representation of the complex number.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two complex numbers.
Public operatorStatic memberDivision
Divides two complex numbers.
Public operatorStatic memberEquality
Tests the equality of two complex numbers.
Public operatorStatic member(Complex to Double)
Converts the complex number to a double-precision real number.
Public operatorStatic member(Double to Complex)
Converts a double-precision real number to a complex number.
Public operatorStatic memberInequality
Tests the inequality of two complex numbers.
Public operatorStatic memberMultiply(Double, Complex)
Multiplies a complex number by a real number.
Public operatorStatic memberMultiply(Complex, Complex)
Multiplies two complex numbers.
Public operatorStatic memberMultiply(Complex, Double)
Multiplies a real number by a complex number.
Public operatorStatic memberSubtraction
Subtracts the second complex number from the first.
Public operatorStatic memberUnaryNegation
Negates a complex number.
Top
Fields
  NameDescription
Public fieldStatic memberI
Gets the square root of negative one.
Public fieldStatic memberOne
Gets the complex value of one.
Public fieldStatic memberZero
Gets the complex value of zero.
Top
Remarks

Version 4.0 of the .NET Framework introduced a Complex structure equivalent to this one. To maintain compatibility with earlier versions of the .NET Framework, Meta.Numerics maintains its own Complex structure.

See Also