Click or drag to resize

FloatComplex Structure

The FloatComplex struct represents a complex number, consisting of a real part and an imaginary part.
Inheritance Hierarchy
SystemObject
  SystemValueType
    CenterSpace.NMath.CoreFloatComplex

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public struct FloatComplex

The FloatComplex type exposes the following members.

Constructors
 NameDescription
Public methodFloatComplex(Double) Constructs a FloatComplex instance with the specified real part. The imaginary part is set to 0.0.
Public methodFloatComplex(Single) Constructs a FloatComplex instance with the specified real part. The imaginary part is set to 0.0.
Public methodFloatComplex(String) Constructs a FloatComplex instance from a string representation of the form real,imag or (real,imag).
Public methodFloatComplex(Double, Double) Constructs a FloatComplex instance with the specified real and imaginary parts.
Public methodFloatComplex(Single, Single) Constructs a FloatComplex instance with the specified real and imaginary parts.
Public methodFloatComplex(String, NumberStyles) Constructs a new FloatComplex instance from a given string representation using the specified style.
Top
Methods
 NameDescription
Public methodStatic memberAdd(FloatComplex, FloatComplex) Returns the sum of two complex numbers.
Public methodStatic memberAdd(FloatComplex, Single) Returns the sum of a complex number and a real number.
Public methodStatic memberAdd(Single, FloatComplex) Returns the sum of a real and a complex number.
Public methodStatic memberArg Returns the argument (or phase) of a complex number.
Public methodConj Returns the conjugate of this complex number.
Public methodStatic memberConj(FloatComplex)Obsolete.
Returns the conjugate of a complex number.
Public methodStatic memberDivide(FloatComplex, FloatComplex) Returns the quotient of dividing one complex number by another.
Public methodStatic memberDivide(FloatComplex, Single) Returns the quotient of dividing a complex number by a real number.
Public methodStatic memberDivide(Single, FloatComplex) Returns the quotient of dividing a real number by a complex number.
Public methodEquals Tests for equality of this complex number and another complex number.
(Overrides ValueTypeEquals(Object))
Public methodStatic memberFromPolar Returns a complex number in Cartesian form from the supplied polar coordinates.
Public methodGetHashCode Returns an integer hash code for this complex number.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberMultiply(FloatComplex, FloatComplex) Returns the product of two complex numbers.
Public methodStatic memberMultiply(FloatComplex, Single) Returns the product of a complex number and a real.
Public methodStatic memberMultiply(Single, FloatComplex) Returns the product of a real and a complex number.
Public methodNaNEquals Tests for equality of this complex number and another complex number.
Public methodStatic memberNegate Returns the negation of a complex number.
Public methodStatic memberNorm Returns the norm (or modulus) of a complex number.
Public methodStatic memberParse(String) Constructs a FloatComplex instance from a string representation of the form real,imag or (real,imag).
Public methodStatic memberParse(String, NumberStyles) Constructs a new FloatComplex instance from a given string representation using the specified style.
Public methodStatic memberSubtract(FloatComplex, FloatComplex) Returns the difference of two complex numbers.
Public methodStatic memberSubtract(FloatComplex, Single) Returns the difference of a complex number and a real number.
Public methodStatic memberSubtract(Single, FloatComplex) Returns the difference of a real number and a complex number.
Public methodToString Returns a formatted string representation of this complex number of the form (real,imag).
(Overrides ValueTypeToString)
Public methodToString(String) Returns a formatted string representation of this complex number of the form (real,imag) The real numbers real and imag are formatted according to the input format string formatString.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(FloatComplex, FloatComplex) Returns the sum of two complex numbers.
Public operatorStatic memberAddition(FloatComplex, Single) Returns the sum of a complex number and a real number.
Public operatorStatic memberAddition(Single, FloatComplex) Returns the sum of a real and a complex number.
Public operatorStatic memberDivision(FloatComplex, FloatComplex) Returns the quotient of dividing one complex number by another.
Public operatorStatic memberDivision(FloatComplex, Single) Returns the quotient of dividing a complex number by a real number.
Public operatorStatic memberDivision(Single, FloatComplex) Returns the quotient of dividing a real number by a complex number.
Public operatorStatic memberEquality(FloatComplex, FloatComplex) Tests for equality of two complex numbers.
Public operatorStatic member(Single to FloatComplex) Implicitly converts a floating point number into a FloatComplex instance. The imaginary part is set to 0.0.
Public operatorStatic memberInequality(FloatComplex, FloatComplex) Tests for inequality of two complex numbers.
Public operatorStatic memberMultiply(FloatComplex, FloatComplex) Returns the product of two complex numbers.
Public operatorStatic memberMultiply(FloatComplex, Single) Returns the product of a complex number and a real.
Public operatorStatic memberMultiply(Single, FloatComplex) Returns the product of a real and a complex number.
Public operatorStatic memberSubtraction(FloatComplex, FloatComplex) Returns the difference of two complex numbers.
Public operatorStatic memberSubtraction(FloatComplex, Single) Returns the difference of a complex number and a real number.
Public operatorStatic memberSubtraction(Single, FloatComplex) Returns the difference of a real number and a complex number.
Public operatorStatic memberUnaryNegation(FloatComplex) Returns the negation of a complex number.
Top
Fields
 NameDescription
Public fieldImag The imaginary part of this complex number.
Public fieldReal The real part of this complex number.
Top
Remarks
A FloatComplex instance has public floating point data members Real and Imag.
FloatComplex supports equality operations, conversion from type float or a string representation, and basic arithmetic operations. Static member functions are also provided for returning the argument (or phase) of a complex number, the complex conjugate, the norm (or modulus), and for converting from polar coordinates.
Trigonometric functions for complex numbers, and mathematical functions such as exponents, logarithms, powers, and square roots, are available in class NMathFunctions.
See Also