Class ExpressionSimplifier
java.lang.Object
math.differentialcalculus.ExpressionSimplifier
Objects of this class seek to
simplify a math expression, by taking it
through a series of transformative processes.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) FormulaManager
An ArrayList containing the tokens of an algebraic expression. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
Automatically generates a name for a given Formula object..especially since these are automatically created on the fly during expression simplification.static void
simplifyCompoundBrackets
(List<String> list) Simplifies tokens in a List that have no + or - operator, but may have brackets.Used by the main parser solve to figure out SBP portions of a multi-bracketed expression (MBP)
-
Field Details
-
scanned
-
manager
FormulaManager manager
-
-
Constructor Details
-
ExpressionSimplifier
-
-
Method Details
-
getSimplifiedExpression
-
translateToBaseTerms
-
simplifyCompoundBrackets
-
solve
-
generateName
Automatically generates a name for a given Formula object..especially since these are automatically created on the fly during expression simplification.- Returns:
- a unique name for the object.
-