TDouble Class

Implementation of BaseEntry which contains either a double precision number or a text.

Definition

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

Constructors

TDouble(Double) Constructs TDouble instance with the specified numeric value.
TDouble(String)

Constructs TDouble instance from text.

If text starts with UnitChar then initializes Units and sets the double value to 1.

TDouble(TDouble) Constructs TDouble instance as a copy of the specified TDouble instance.

Properties

D Double precision number value.
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

Clone Creates a copy of this instance.
(Overrides BaseEntry.Clone())
Com Adds value to this instance.
(Overrides BaseEntry.Com(BaseEntry))
Cos Computes cosine of this instance.
(Inherited from BaseEntry)
Cot Computes cotangent of this instance.
(Inherited from BaseEntry)
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))
Factorial Computes factorial of a non negative integer.
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.
(Overrides BaseEntry.Gt(BaseEntry))
Identity Builds an identity matrix of size N * N where N == this.
Lt Returns true if this instance is less than value.
(Overrides BaseEntry.Lt(BaseEntry))
Matrix Builds a zero matrix with N rows and M columns where N == this and M == value.
Mod Computes the remainder after dividing this integer value by the specified integer value.
Mul Multiplies value by this instance.
(Overrides BaseEntry.Mul(BaseEntry))
Pow Exponentiation operation.
(Overrides BaseEntry.Pow(BaseEntry))
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.
Random Generates the next pseudo-random number in the range [0, this).
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)
Sign Returns the value of the sign function.
Sin Computes sine of this instance.
(Inherited from BaseEntry)
Sub Subtracts value from this instance.
(Overrides BaseEntry.Sub(BaseEntry))
Tan Computes tangent of this instance.
(Inherited from BaseEntry)
ToDouble Converts this instance to a Double value.
(Overrides BaseEntry.ToDouble())
ToSignificantDigits Formats the value with the specified number of significant digits.
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.
(Overrides BaseEntry.ToTerms(IResultOptions))
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)

Operators

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

Fields

isText Determines whether this instance of TDouble contains text value.
Text Text value.

See Also