public class DEquationExtractor extends EquationExtractor
y
is a variable which has an equation it will be replaced by its equation.
Methods allow either all yariables with equations to be extracted
or just those which are PartialDerivative.| Modifier and Type | Class and Description |
|---|---|
static class |
DEquationExtractor.Type |
| Constructor and Description |
|---|
DEquationExtractor() |
DEquationExtractor(DJep j) |
| Modifier and Type | Method and Description |
|---|---|
Node |
replacePartialDerivativeByExpressions(Node node)
Replace
PartialDerivative variables by their equations |
Node |
replaceRHSVariablesByEquations(Node node)
Replace variables on the right had side of an assignment by their equations
|
Node |
replaceVariableByExpressions(Node node)
Replace all symbolic variable by their equations
|
java.lang.Object |
visit(ASTVarNode node,
java.lang.Object data)
Visit a variable node.
|
Node |
visit(Node node) |
deepCopy, visit, visit, visitchildrenHaveChanged, copyChildrenIfNeeded, getFunctionTable, getLightWeightInstance, getNodeFactory, getOperatorTable, getVariableTable, init, visitChildren, visitNodepublic DEquationExtractor()
public DEquationExtractor(DJep j)
public Node visit(Node node) throws JepException
visit in class DoNothingVisitorJepExceptionpublic Node replaceVariableByExpressions(Node node) throws JepException
replaceVariableByExpressions in class EquationExtractornode - root of expressionJepExceptionpublic Node replacePartialDerivativeByExpressions(Node node) throws JepException
PartialDerivative variables by their equationsnode - root of expressionJepExceptionpublic Node replaceRHSVariablesByEquations(Node node) throws JepException
replaceRHSVariablesByEquations in class EquationExtractornode - an equation of the form g:=f^2-1JepExceptionpublic java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws JepException
DoNothingVisitorvisit in interface ParserVisitorvisit in class EquationExtractorJepExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep