| Complex Structure |
Namespace: Microsoft.Research.Liquid
[<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.
| Name | Description | |
|---|---|---|
| i |
Gets the imaginary part of this Complex number.
| |
| I |
The square root of negative one, as a Complex number.
| |
| MCC |
Gets the squared magnitude of this Complex number.
| |
| One |
One, as a Complex number
| |
| r |
Gets the real part of this Complex number.
| |
| Tol |
Tolerance for comparing two Complex numbers.
This is used in various places in the system.
| |
| Zero |
Zero, as a Complex number
|
| Name | Description | |
|---|---|---|
| Conj |
Computes the complex conjugate of this Complex number.
| |
| Copy |
Duplicates this Complex number in a new instance.
| |
| Dump |
Dumps this Complex number to the console and log with an optional indentation.
| |
| Equals | Indicates whether this instance and a specified object are equal. (Inherited from ValueType.) | |
| GetHashCode | Returns the hash code for this instance. (Inherited from ValueType.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Narrow |
Converts this Complex number to a short human-readable string.
| |
| ToString |
Converts this Complex number to a human-readable string.
(Overrides ValueTypeToString.) | |
| Wide |
Converts this Complex number to a string suitable for input to other programs.
|
| Name | Description | |
|---|---|---|
| Addition |
Adds two Complex numbers.
| |
| Multiply(Double, Complex) |
Multiplies a real and a Complex number.
| |
| Multiply(Complex, Complex) |
Multiplies two Complex numbers.
| |
| Multiply(Complex, Double) |
Multiplies a Complex and a real number.
| |
| Subtraction |
Subtracts one Complex number from another.
| |
| TwiddleTwiddle |
Gets the complex conjugate of a Complex number.
| |
| UnaryNegation |
Gets the negation of a Complex number.
|