TComplex Class

Implementation of BaseEntry as a complex number.

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public sealed class TComplex : BaseEntry
Inheritance
Object    BaseEntry    TComplex

Constructors

TComplex(TComplex) Constructs TComplex instance as a copy of the specified TComplex instance.
TComplex(Double, Double) Constructs TComplex instance with the specified real and imaginary parts.
TComplex(TDouble, TDouble) Constructs TComplex instance with the specified real and imaginary parts.
TComplex(TInfinity, TInfinity) Constructs TComplex instance with the specified real and imaginary parts.

Properties

HasUnits Determines whether current instance of BaseEntry contains units or not.
(Inherited from BaseEntry)
IzZero Determines whether current instance of BaseEntry is equal to zero or not.
(Overrides BaseEntry.IzZero)
Type Type of the BaseEntry which is implemented by a current instance of the object.
(Inherited from BaseEntry)
Units

Units of measurement for the expression component.

  Important

Every numeric expression component must have a value in Units. For dimensionless quantities like angles in radians the value of Units is set to 1.


(Inherited from BaseEntry)

Methods

Abs Returns the absolute value of the complex number, i.e. the Euclidean distance of its corresponding point in the complex plane from the origin
ACos Computes arccosine of the complex number.
ACosH Computes inverse hyperbolic cosine of the complex number.
ACot Computes arccotangent of the complex number.
ACotH Computes inverse hyperbolic contangent of the complex number.
Arg() Returns the argument of the complex number, i.e. the angle between the positive real axis and the line joining the origin and the number represented as a point in the complex plane.
Arg(Double, Double, Double, Double) Returns the argument of complex number with Re == thisRenum/thisReden and Im == thisImnum/thisImden.
ASin Computes arcsine of the complex number.
ASinH Computes inverse hyperbolic sine of the complex number.
ATan Computes arctangent of the complex number.
ATan2 Computes arctangent of the complex number this / y.
ATanH Computes inverse hyperbolic tangent of the complex number.
Clone Creates a copy of this instance.
(Overrides BaseEntry.Clone())
Com Adds value to this instance.
(Overrides BaseEntry.Com(BaseEntry))
Cos Computes cosine of the complex number.
(Overrides BaseEntry.Cos())
CosH Computes hyperbolic cosine of the complex number.
Cot Computes cotangent of the complex number.
(Overrides BaseEntry.Cot())
CotH Computes hyperbolic cotangent of the complex number.
Div Divides this instance by value.
(Overrides BaseEntry.Div(BaseEntry))
EqualsDetermines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object))
GetHashCodeServes as the default hash function.
(Overrides Object.GetHashCode())
GetTypeGets the Type of the current instance.
(Inherited from Object)
Gt Returns true if this instance is greater than value.
(Inherited from BaseEntry)
Ln Computes natural logarithm of the complex number.
Log Computes logarithm to base Base of the complex number.
Lt Returns true if this instance is less than value.
(Inherited from BaseEntry)
Mul Multiplies value by this instance.
(Overrides BaseEntry.Mul(BaseEntry))
pol2xy Determines the real and imaginary parts of the complex number having Abs() == this and Arg() == value.
Pow Exponentiation operation.
(Overrides BaseEntry.Pow(BaseEntry))
Power(TComplex) Computes exponent with base equal to this and power equal to value.
Power(TDouble) Computes exponent with base equal to this and power equal to value.
Power(TFraction) Computes exponent with base equal to this and power equal to value.
Power(MItem, Double, Double, Double, Double, Double, Double, Double, Double, BaseEntry, Double, Double, Double, Double) Worker method for exponentiation.
Round(BaseEntry) Rounds the value to the specified number of fractional digits.
(Inherited from BaseEntry)
Round(BaseEntry, TDouble) Rounds the value to the specified number of fractional digits using the specified rounding convention.
(Inherited from BaseEntry)
Sin Computes sine of the complex number.
(Overrides BaseEntry.Sin())
SinH Computes hyperbolic sine of the complex number.
Sub Subtracts value from this instance.
(Overrides BaseEntry.Sub(BaseEntry))
Tan Computes tangent of the complex number.
(Overrides BaseEntry.Tan())
TanH Computes hyperbolic tangent of the complex number.
ToDouble Converts this instance to a Double value.
(Overrides BaseEntry.ToDouble())
ToString() Converts math expression component to string.
(Inherited from BaseEntry)
ToString(IResultOptions) Converts math expression component to string with options.
(Overrides BaseEntry.ToString(IResultOptions))
ToString(Int32, Int32, FractionsType, Boolean) Converts math expression component to string with options.
(Inherited from BaseEntry)
Obsolete.
ToString(Int32, Int32, FractionsType, Boolean, Boolean, MidpointRounding) Converts math expression component to string with options.
(Inherited from BaseEntry)
Obsolete.
ToTerms() Converts current expression component to the array of Term in reverse Polish notation (RPN).
(Inherited from BaseEntry)
ToTerms(IResultOptions) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
(Inherited from BaseEntry)
ToTerms(Int32, Int32, FractionsType, Boolean) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
(Inherited from BaseEntry)
Obsolete.
ToTerms(Int32, Int32, FractionsType, Boolean, Boolean, MidpointRounding) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
(Inherited from BaseEntry)
Obsolete.
Trunc Returns the integer part of this value.
(Inherited from BaseEntry)
xy2pol() Converts this complex number to polar coordinates.
xy2pol(TComplex) Converts a complex number with Re == this and Im == value to polar coordinates.

Operators

Addition(TComplex, TComplex) Adds two TComplex objects.
Division(TComplex, TComplex) Divides two TComplex objects.
Equality(TComplex, TComplex) Returns true if the operands are equal.
Implicit(Double to TComplex) Provides implicit conversion from Double to TComplex.
Implicit(TDouble to TComplex) Provides implicit conversion from TDouble to TComplex.
Implicit(TFraction to TComplex) Provides implicit conversion from TFraction to TComplex.
Implicit(TInfinity to TComplex) Provides implicit conversion from TInfinity to TComplex.
Implicit(TNumber to TComplex) Provides implicit conversion from TNumber to TComplex.
Inequality(TComplex, TComplex) Returns true if the operands are not equal.
Multiply(TComplex, TComplex) Multiplies two TComplex objects.
Subtraction(TComplex, TComplex) Subtracts two TComplex objects.

Fields

Im Imaginary part of the complex number.
Re Real part of the complex number.

See Also