TFraction Class

Implements BaseEntry as a regular fraction.

Definition

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

Constructors

TFraction(Double)Initializes a new instance of the TFraction class
TFraction(Double, Double)Initializes a new instance of the TFraction class
TFraction(TDouble, TDouble)Initializes a new instance of the TFraction class
TFraction(Double, Double, Boolean)Initializes a new instance of the TFraction class

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 BaseEntryIzZero)
Type Type of the BaseEntry which is implemented by a current instance of the object.
(Inherited from BaseEntry)
Units Unit of the expression component.
(Inherited from BaseEntry)

Methods

Clone Copying of the expression component.
(Overrides BaseEntryClone)
Com Addition (composition) operation.
(Overrides BaseEntryCom(BaseEntry))
Cos Returns Cosine of the value.
(Inherited from BaseEntry)
Cot Returns Cotangent of the value.
(Inherited from BaseEntry)
Div Division operation.
(Overrides BaseEntryDiv(BaseEntry))
Equals
(Overrides ObjectEquals(Object))
GetHashCode
(Overrides ObjectGetHashCode)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Gt
(Overrides BaseEntryGt(BaseEntry))
Lt
(Overrides BaseEntryLt(BaseEntry))
Mul Multiplication operation.
(Overrides BaseEntryMul(BaseEntry))
Pow Exponentiation operation.
(Overrides BaseEntryPow(BaseEntry))
Power(TDouble) 
Power(TFraction) 
Round(BaseEntry) Rounds a value to a specified number of fractional digits.
(Inherited from BaseEntry)
Round(BaseEntry, TDouble) Rounds a value to a specified number of fractional digits using the specified rounding convention.
(Inherited from BaseEntry)
Sin Returns Sine of the value.
(Inherited from BaseEntry)
Sub Subtraction operation.
(Overrides BaseEntrySub(BaseEntry))
Tan Returns Tangent of the value.
(Inherited from BaseEntry)
ToDouble Converts current expression component to Double value.
(Overrides BaseEntryToDouble)
ToString Converts math expression component to string.
(Inherited from BaseEntry)
ToString(IResultOptions) Converts math expression component to string with options.
(Overrides BaseEntryToString(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 a number.
(Inherited from BaseEntry)

Operators

Addition(TDouble, TFraction) Computes the sum of two objects: TDouble and TFraction.
Addition(TFraction, TDouble) Computes the sum of two objects: TFraction and TDouble.
Addition(TFraction, TFraction) Computes the sum of two TFraction objects.
Division(TDouble, TFraction) Computes the division of two objects: TDouble and TFraction.
Division(TFraction, TDouble) Computes the division of two objects: TFraction and TDouble.
Division(TFraction, TFraction) Computes the division of two TFraction objects.
Equality(TFraction, TFraction) 
GreaterThan(TFraction, TFraction) 
Inequality(TFraction, TFraction) 
LessThan(TFraction, TFraction) 
Multiply(TDouble, TFraction) Computes the multiplication of two objects: TDouble and TFraction.
Multiply(TFraction, TDouble) Computes the multiplication of two objects: TFraction and TDouble.
Multiply(TFraction, TFraction) Computes the multiplication of two TFraction objects.
Subtraction(TDouble, TFraction) Computes the subtract of two objects: TDouble and TFraction.
Subtraction(TFraction, TDouble) Computes the subtract of two objects: TFraction and TDouble.
Subtraction(TFraction, TFraction) Computes the subtract of two TFraction objects.

Fields

den 
num 

See Also