Click or drag to resize
Complex Structure
Data type for complex numbers.

Namespace: Microsoft.Research.Liquid
Assembly: Liquid1 (in Liquid1.dll) Version: 1.0.5981.24943 (1.0.*)
Syntax
F#
[<SealedAttribute>]
[<SerializableAttribute>]
type Complex =  
    struct
        interface IEquatable<Complex>
        interface IStructuralEquatable
        interface IComparable<Complex>
        interface IComparable
        interface IStructuralComparable
    end

The Complex type exposes the following members.

Constructors
  NameDescription
Public methodComplex
Constructs a complex number from its real and imaginary parts.
Top
Properties
  NameDescription
Public propertyi
Gets the imaginary part of this Complex number.
Public propertyStatic memberI
The square root of negative one, as a Complex number.
Public propertyMCC
Gets the squared magnitude of this Complex number.
Public propertyStatic memberOne
One, as a Complex number
Public propertyr
Gets the real part of this Complex number.
Public propertyStatic memberTol
Tolerance for comparing two Complex numbers. This is used in various places in the system.
Public propertyStatic memberZero
Zero, as a Complex number
Top
Methods
  NameDescription
Public methodConj
Computes the complex conjugate of this Complex number.
Public methodCopy
Duplicates this Complex number in a new instance.
Public methodDump
Dumps this Complex number to the console and log with an optional indentation.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodNarrow
Converts this Complex number to a short human-readable string.
Public methodToString
Converts this Complex number to a human-readable string.
(Overrides ValueTypeToString.)
Public methodWide
Converts this Complex number to a string suitable for input to other programs.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two Complex numbers.
Public operatorStatic memberMultiply(Double, Complex)
Multiplies a real and a Complex number.
Public operatorStatic memberMultiply(Complex, Complex)
Multiplies two Complex numbers.
Public operatorStatic memberMultiply(Complex, Double)
Multiplies a Complex and a real number.
Public operatorStatic memberSubtraction
Subtracts one Complex number from another.
Public operatorStatic memberTwiddleTwiddle
Gets the complex conjugate of a Complex number.
Public operatorStatic memberUnaryNegation
Gets the negation of a Complex number.
Top
See Also