BaseEntry Class

Base class for a numeric component of a mathematical expression.

Definition

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

Constructors

BaseEntry Default constructor of the BaseEntry object.

Properties

HasUnits Determines whether current instance of BaseEntry contains units or not.
IzZero Determines whether current instance of BaseEntry is equal to zero or not.
Type Type of the BaseEntry which is implemented by a current instance of the object.
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.

Methods

Clone Creates a copy of this instance.
Com Adds value to this instance.
ComUnits Handles the units in result of an operation assuming that they must be the same in both its arguments (for example, when the operation is composition).
  • If both c1 and c2 have no units then does nothing.
  • If the units of c1 and c2 are the same and result is zero then does nothing.
  • If the units of c1 and c2 are the same and result is non-zero then sets Units in result.
  • If the units of c1 and c2 are different then throws GeneralException.
Cos Computes cosine of this instance.
Cot Computes cotangent of this instance.
Div Divides this instance by value.
DivUnits

Sets Units in result to the units of c1 divided by the units of c2.

Does nothing when both c1 and c2 have no units or when result is zero.

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FireExceptionIfUnits

Throws GeneralException with code OperationCanNotBePerformedWithUnits if any of the specified expression components contains units of measurement in Units.

  Note

Exception is not thrown for an expression component that has Units equal to 1.

GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetUnitsAppender Gets the suffix of expression text which is added for units.
Gt Returns true if this instance is greater than value.
Lt Returns true if this instance is less than value.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Mul Multiplies value by this instance.
MulUnits

Sets Units in result to the units of c1 multiplied by the units of c2.

Does nothing when both c1 and c2 have no units or when result is zero.

Pow Exponentiation operation.
Round(BaseEntry) Rounds the value to the specified number of fractional digits.
Round(BaseEntry, TDouble) Rounds the value to the specified number of fractional digits using the specified rounding convention.
Sin Computes sine of this instance.
Sub Subtracts value from this instance.
Tan Computes tangent of this instance.
ToDouble Converts this instance to a Double value.
ToString() Converts math expression component to string.
(Overrides Object.ToString())
ToString(IResultOptions) Converts math expression component to string with options.
ToString(Int32, Int32, FractionsType, Boolean) Converts math expression component to string with options.
Obsolete.
ToString(Int32, Int32, FractionsType, Boolean, Boolean, MidpointRounding) Converts math expression component to string with options.
Obsolete.
ToTerms() Converts current expression component to the array of Term in reverse Polish notation (RPN).
ToTerms(IResultOptions) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
ToTerms(Int32, Int32, FractionsType, Boolean) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
Obsolete.
ToTerms(Int32, Int32, FractionsType, Boolean, Boolean, MidpointRounding) Converts current expression component to the array of Term in reverse Polish notation (RPN) with options.
Obsolete.
Trunc Returns the integer part of this value.

Operators

GreaterThan(BaseEntry, BaseEntry) Returns true if left-hand operand is greater than right-hand operand.
LessThan(BaseEntry, BaseEntry) Returns true if left-hand operand is less than right-hand operand.

See Also