Version

Complex Structure Members

The following tables list the members exposed by Complex.

Public Constructors
 NameDescription
Public ConstructorComplex ConstructorInitializes a new Complex number with real and imaginary components.  
Public Properties
 NameDescription
Public PropertyImReturns the imaginary part of the Complex number.  
Public PropertyMagReturns the magnitude of the Complex number.  
Public PropertyPhaseReturns the phase of the Complex number.  
Public PropertyReReturns the real part of the Complex number.  
Public Methods
 NameDescription
Public MethodAddAdds a Complex number z to the Complex number.  
Public MethodCompareCompares the Complex number to another Complex number z.  
Public MethodDivideDivides a Complex number z from the Complex number.  
Public MethodEqualsCompares the Complex number to x for equality.  
Public MethodGetHashCodeReturns a hash code for the Complex number.  
Public MethodMultiplyMultiplys a Complex number z to the Complex number.  
Public Methodstatic (Shared in Visual Basic)ParseTakes a string representation of a Complex number and returns the specified Complex number.  
Public MethodSubtractSubtracts a Complex number z from the Complex number.  
Public MethodToStringOverloaded. Returns the string representation of a Complex number.  
Public Methodstatic (Shared in Visual Basic)TryParseReturns True if s can be parsed into a Complex number; False otherwise.  
Public Operators
public Operator Addition Returns the sum of two Complex numbers.
public Operator Division Returns the division of two Complex numbers.
public Operator Equality Compares two Complex numbers for equality.
public Operator Greater Than Returns True if z1 is greater than z2; False otherwise.
public Operator Greater Than or Equal Returns True if z1 is greater than or equal to z2; False otherwise.
public Operator Implicit Type Conversion Casts a double to a Complex number.
public Operator Inequality Compares two Complex numbers for inequality.
public Operator Less Than Returns True if z1 is less than z2; False otherwise.
public Operator Less Than or Equal Returns True if z1 is less than or equal to z2; False otherwise.
public Operator Multiplication Overloaded. Returns the product of two Complex numbers.
public Operator Subtraction Returns the difference of two Complex numbers.
See Also