The Complex type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() |
Abs |
Returns the absolute value of the complex number.
|
![]() |
Abs2 |
Returns the square of the absolute value (re*re+im*im).
|
![]() |
Acos | |
![]() |
Acosh | |
![]() |
Add |
Adds the complex number with another complex value.
|
![]() |
Arg |
Returns the argument of this complex number (Math.atan2(re,im))
|
![]() |
Asin | |
![]() |
Asinh | |
![]() |
Atan | |
![]() |
Atanh | |
![]() |
Conj |
Returns the complex conjugate.
|
![]() |
Cos |
Returns the cosine of this complex number.
|
![]() |
Cosh | |
![]() |
Div |
Returns the result of dividing this complex number by the parameter.
|
![]() |
DoubleValue |
Returns real part.
|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
FloatValue |
Returns real part.
|
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
HashCode |
Always override HashCode when you override IsEqual.
Effective Java, Joshua Bloch, Sun Press
|
![]() |
IntValue |
Returns real part.
|
![]() |
IsEqual | Overloaded. |
![]() |
IsInfinite |
Returns true if either the real or imaginary component of this
Complex is an infinite value.
|
![]() |
IsNaN |
Returns true if either the real or imaginary component of this
Complex is a Not-a-Number (NaN) value.
|
![]() |
Log |
Returns the logarithm of this complex number.
The real part is Math.Log(this.Abs()) and the complex part is this.Arg(), in the range -pi .. pi.
|
![]() |
LongValue |
Returns real part.
|
![]() |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
Mul | Overloaded. |
![]() |
Neg |
Returns the negative value of this complex number.
|
![]() ![]() |
PolarValueOf |
Converts an [r,theta] pair to a complex number r * e^(i theta).
|
![]() |
Pow | Overloaded. |
![]() |
Set | Overloaded. |
![]() |
Sin |
Returns the sine of this complex number.
|
![]() |
Sinh | |
![]() |
Sqrt |
Calculates the square root of this object.
Adapted from Numerical Recipes in C - The Art of Scientific Computing
(ISBN 0-521-43108-5)
|
![]() |
Sub |
Adds the complex number with another complex value.
|
![]() |
Tan |
Returns the tangent of this complex number.
|
![]() |
Tanh | |
![]() |
ToString |
Returns the value of this complex number as a string in the format:
(real, imaginary).
(Overrides Object..::.ToString()()().) |