public class Subst extends PostfixMathCommand implements CommandVisitorI
substitute(eqn,sub)
preprocessing operator to perform
symbolic substitution.
For example
subst(x*y*z,y=x+1,z=x-1)
Will return x*(x+1.0)*(x-1.0)
.
CommandVisitorI
,
SubstitutionVisitor
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected SubstitutionVisitor |
subv |
curNumberOfParameters, name, NaN, numberOfParameters
Constructor and Description |
---|
Subst(SubstitutionVisitor subv) |
Subst(XJep xjep) |
Modifier and Type | Method and Description |
---|---|
Node |
process(Node node,
Node[] children)
Performs the specified action on an expression tree.
|
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, run, setCurNumberOfParameters, setName, toString, toString
protected SubstitutionVisitor subv
public Subst(XJep xjep)
public Subst(SubstitutionVisitor subv)
public Node process(Node node, Node[] children) throws ParseException
CommandVisitorI
process
in interface CommandVisitorI
node
- top node of the treechildren
- the children of the node after they have been preprocessed.ParseException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep