Click or drag to resize

Complex Structure

Represents a complex number.

Namespace:  FinMath
Assembly:  FinMath (in FinMath.dll) Version: 2.4.7-0a995bd0ea1854c2c868ec3f8dae606c5777e170
Syntax
C#
[SerializableAttribute]
public struct Complex : IEquatable<Complex>, 
	IFormattable

The Complex type exposes the following members.

Constructors
  NameDescription
Public methodComplex
Initializes a new instance of the Complex structure using the specified real and imaginary values.
Top
Properties
  NameDescription
Public propertyImaginary
Gets the imaginary component of the current Complex object.
Public propertyMagnitude
Gets the magnitude (or absolute value) of a complex number.
Public propertyPhase
Gets the phase of a complex number.
Public propertyReal
Gets the real component of the current Complex object.
Top
Methods
  NameDescription
Public methodStatic memberAbs
Gets the absolute value (or magnitude) of a complex number.
Public methodStatic memberAcos
Returns the angle that is the arc cosine of the specified complex number.
Public methodStatic memberAdd
Adds two complex numbers.
Public methodStatic memberAsin
Returns the angle that is the arc sine of the specified complex number.
Public methodStatic memberAtan
Returns the angle that is the arc tangent of the specified complex number.
Public methodStatic memberConjugate
Computes the conjugate of a complex number and returns the result.
Public methodStatic memberCos
Returns the cosine of the specified complex number.
Public methodStatic memberCosh
Returns the hyperbolic cosine of the specified complex number.
Public methodStatic memberDivide
Divides a specified complex number by another specified complex number.
Public methodEquals(Object)
Indicates whether the current complex number is equal to another one.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Complex)
Indicates whether the current complex number is equal to another one.
Public methodStatic memberExp
Returns e raised to the power specified by a complex number.
Public methodStatic memberFromPolarCoordinates
Creates a complex number from a point's polar coordinates.
Public methodGetHashCode
Returns the hash code for the current Complex object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLog(Complex)
Returns the natural (base E) logarithm of a specified complex number.
Public methodStatic memberLog(Complex, Double)
Returns the logarithm of a specified complex number in a specified base.
Public methodStatic memberLog10
Returns the base-10 logarithm of a specified complex number.
Public methodStatic memberMultiply
Multiplies two specified complex numbers.
Public methodStatic memberNegate
Returns the additive inverse of a specified complex number.
Public methodStatic memberPow(Complex, Complex)
Returns a specified complex number raised to a power specified by a complex number.
Public methodStatic memberPow(Complex, Double)
Returns a specified complex number raised to a power specified by a double-precision floating-point number.
Public methodStatic memberReciprocal
Returns the multiplicative inverse of a complex number.
Public methodStatic memberSin
Returns the sine of the specified complex number.
Public methodStatic memberSinh
Returns the hyperbolic sine of the specified complex number.
Public methodStatic memberSqrt
Returns the square root of a specified complex number.
Public methodStatic memberSubtract
Subtracts a complex number from another complex number.
Public methodStatic memberTan
Returns the tangent of the specified complex number.
Public methodStatic memberTanh
Returns the hyperbolic tangent of the specified complex number.
Public methodToString
Converts the value of the current complex number to its equivalent string representation in Cartesian form.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the value of the current complex number to its equivalent string representation in Cartesian form by using the specified culture-specific formatting information.
Public methodToString(String)
Converts the value of the current complex number to its equivalent string representation in Cartesian form by using the specified format for its real and imaginary parts.
Public methodToString(String, IFormatProvider)
Formats the value of this complex number using the specified format.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two complex numbers.
Public operatorStatic memberDivision
Divides a specified complex number by another specified complex number.
Public operatorStatic memberEquality
Returns a value that indicates whether two complex numbers are equal.
Public operatorStatic member(Decimal to Complex)
Defines an explicit conversion of a Decimal value to a complex number.
Public operatorStatic member(Byte to Complex)
Defines an implicit conversion of an unsigned byte to a complex number.
Public operatorStatic member(Double to Complex)
Defines an implicit conversion of a Double-precision floating-point number to a complex number.
Public operatorStatic member(Int16 to Complex)
Defines an implicit conversion of a 16-bit signed integer to a complex number.
Public operatorStatic member(Int32 to Complex)
Defines an implicit conversion of a 32-bit signed integer to a complex number.
Public operatorStatic member(Int64 to Complex)
Defines an implicit conversion of a 64-bit signed integer to a complex number.
Public operatorStatic member(SByte to Complex)
Defines an implicit conversion of a signed byte to a complex number.
Public operatorStatic member(Single to Complex)
Defines an implicit conversion of a single-precision floating-point number to a complex number.
Public operatorStatic member(UInt16 to Complex)
Defines an implicit conversion of a 16-bit unsigned integer to a complex number.
Public operatorStatic member(UInt32 to Complex)
Defines an implicit conversion of a 32-bit unsigned integer to a complex number.
Public operatorStatic member(UInt64 to Complex)
Defines an implicit conversion of a 64-bit unsigned integer to a complex number.
Public operatorStatic memberInequality
Returns a value that indicates whether two complex numbers are not equal.
Public operatorStatic memberMultiply
Multiplies two specified complex numbers.
Public operatorStatic memberSubtraction
Subtracts a complex number from another complex number.
Public operatorStatic memberUnaryNegation
Returns the additive inverse of a specified complex number.
Top
Fields
  NameDescription
Public fieldStatic memberImaginaryOne
Returns a new Complex instance with a real number equal to zero and an imaginary number equal to one.
Public fieldStatic memberOne
Returns a new Complex instance with a real number equal to one and an imaginary number equal to zero.
Public fieldStatic memberZero
Returns a new Complex instance with a real number equal to zero and an imaginary number equal to zero.
Top
See Also