MItem Class

Symbolic representation of the mathematical expression.

Definition

Namespace: SMath.Math.Symbolic
Assembly: SMath.Math.Symbolic (in SMath.Math.Symbolic.dll) Version: 1.35.9018.0
C#
public class MItem : IPrimitive<MItem>, 
	IPrimitive
Inheritance
Object    MItem
Derived
Implements
IPrimitive, IPrimitiveMItem

Constructors

MItem(Double) Automatically supports positive and negative values.
MItem(MItem) Math element constructor. Copies existing element content.
MItem(Double, Boolean, Boolean) Math element constructor. Copies existing element content.
MItem(MItem, Boolean, Boolean) Math element constructor. Copies existing element content.
MItem(MItem, String, NullableDouble, TermType, Boolean, Boolean) Math element constructor.

Properties

ArgsCount Number of children of the expression component. Can get values:
  • "0" - for the Operand;
  • "1" - for the Bracket;
  • "1" or "2" - for the Operator;
  • More then "1" or equal - for the Function.
Inverse Flag indicating the inverse element.
Item Element by its ordinal number.
Items Dependent elements of the current mathematical element.
Negative Sign of a mathematical element.
Text Text value of the expression component.
Type Type of the expression component.
Value Arithmetic value of the object.

Methods

ContainsSymbolicEntries 
ContainsUnits Checking a symbolic mathematical expression for the presence of units of measurement in it.
ContainsVariable Determines whether an expression contains any variable.
ContainsVariable(ListMItem) Checking a symbolic mathematical expression for the presence of variables in it.
Create(MItem) Creating a mathematical element depending on its content. An element of the class inherited from MItem is created if possible.
Create(MItem, String, NullableDouble, TermType, Boolean, Boolean) Creating a mathematical element depending on its content. An element of the class inherited from MItem is created if possible.
Equals Checking expressions for identity.
(Overrides ObjectEquals(Object))
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetDenominatorList Get all the elements of a negative power (the items in the denominator).
GetHashCode Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode)
GetItemWithOptions Obtaining a mathematical element without taking into account its sign and/or inverse.
GetNumeratorList Get all elements of positive power (elements located in the numerator).
GetRevertedEnumerator 
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetVariablesList Getting a list of variables represented in the mathematical expression.
IsDouble Method that determines whether the mathematical element is a number or not.
MathEqual Checking mathematical expressions for equality. The check is not performed element by element - the values of expressions are checked, and not their identity in the record.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToDouble Converting the element to a number.
ToEntry Converts current symbolic equation to Entry object.
ToRevertedList 
ToString Converts current symbolic equation to string representation.
(Overrides ObjectToString)
ToTerms Converts current symbolic equation to the array of Terms.
ToTermsList Converts current symbolic equation to the list of Terms.

Operators

Addition(MItem, MItem) Computes the sum of two MItem objects.
Division(MItem, MItem) Computes the division of two MItem objects.
Equality(MItem, MItem) 
ExclusiveOr(MItem, MItem) Raising one MItem to the power of another MItem.
(Double to MItem) Defines an implicit conversion of a Double value to a MItem.
Inequality(MItem, MItem) 
Multiply(MItem, MItem) Computes the multiplication of two MItem objects.
Subtraction(MItem, MItem) 
UnaryNegation(MItem) 

See Also