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, visit
childrenHaveChanged, copyChildrenIfNeeded, getFunctionTable, getLightWeightInstance, getNodeFactory, getOperatorTable, getVariableTable, init, visitChildren, visitNode
public DEquationExtractor()
public DEquationExtractor(DJep j)
public Node visit(Node node) throws JepException
visit
in class DoNothingVisitor
JepException
public Node replaceVariableByExpressions(Node node) throws JepException
replaceVariableByExpressions
in class EquationExtractor
node
- root of expressionJepException
public Node replacePartialDerivativeByExpressions(Node node) throws JepException
PartialDerivative
variables by their equationsnode
- root of expressionJepException
public Node replaceRHSVariablesByEquations(Node node) throws JepException
replaceRHSVariablesByEquations
in class EquationExtractor
node
- an equation of the form g:=f^2-1
JepException
public java.lang.Object visit(ASTVarNode node, java.lang.Object data) throws JepException
DoNothingVisitor
visit
in interface ParserVisitor
visit
in class EquationExtractor
JepException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep