Click or drag to resize

Complex Structure

Represents a complex number.

Namespace:  Meta.Numerics
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
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 methodStatic memberIsNaN
Determines if the given complex number is not-a-number.
Public methodToString
Produces a string representation of the complex number.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition(Double, Complex)
Computes the sum of a real and a complex number.
Public operatorStatic memberAddition(Complex, Complex)
Adds two complex numbers.
Public operatorStatic memberAddition(Complex, Double)
Computes the sum of a complex and a real number.
Public operatorStatic memberDivision(Complex, Complex)
Divides two complex numbers.
Public operatorStatic memberDivision(Complex, Double)
Divides a complex number by a real number.
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 member(Complex to Complex)
Converts a System.Numerics.Complex number to a Meta.Numerics.Complex number.
Public operatorStatic member(Complex to Complex)
Converts a Meta.Numerics.Complex number to a System.Numerics.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 one as a complex number.
Public fieldStatic memberZero
Gets zero as a complex number.
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. The Meta.Numerics complex type and the .NET Framework complex type can be used interchangably, because Meta.Numerics defines an implicit cast between them.

See Also