public class MatrixJep extends DJep
Modifier and Type | Field and Description |
---|---|
protected MatrixPreprocessor |
dec |
protected MatrixEvaluator |
mev |
protected MatrixVariableFactory |
mvf |
allowAssignment, allowUndeclared, errorList, ev, funTab, implicitMul, numberFactory, opSet, parser, symTab
Constructor and Description |
---|
MatrixJep() |
Modifier and Type | Method and Description |
---|---|
void |
addStandardFunctions()
Adds the standard functions to the parser.
|
java.lang.Object |
evaluate(Node node)
Evaluate a node.
|
java.lang.Object |
evaluateRaw(Node node)
Evaluate a node.
|
java.lang.Object |
getValueAsObject()
Evaluates and returns the value of the expression as an object.
|
Node |
preprocess(Node node)
Pre-processes an equation to allow the diff and eval operators to be used.
|
addDiffRule, addStandardDiffRules, differentiate, getDifferentationVisitor, newInstance, newInstance
addComplex, addStandardConstants, calcVarValue, continueParsing, deepCopy, evaluate, getNodeFactory, getPrintVisitor, getTreeUtils, getVarsInEquation, print, print, println, println, recursiveGetVarsInEquation, restartParser, restartParser, simplify, substitute, substitute, toString
addConstant, addFunction, addVariable, addVariable, addVariable, getAllowAssignment, getAllowUndeclared, getComplexValue, getErrorInfo, getEvaluatorVisitor, getFunctionTable, getImplicitMul, getNumberFactory, getOperatorSet, getParser, getSymbolTable, getTopNode, getTraverse, getValue, getVar, getVarValue, hasError, initFunTab, initSymTab, parse, parseExpression, removeFunction, removeVariable, setAllowAssignment, setAllowUndeclared, setImplicitMul, setTraverse, setVarValue
protected MatrixPreprocessor dec
protected MatrixVariableFactory mvf
protected MatrixEvaluator mev
public void addStandardFunctions()
JEP
addStandardFunctions
in class XJep
public java.lang.Object evaluate(Node node) throws ParseException
evaluate
in class JEP
node
- the top node of the tree representing the expression.ParseException
- if for some reason the expression could not be evaluatedpublic java.lang.Object evaluateRaw(Node node) throws ParseException
ParseException
public Node preprocess(Node node) throws ParseException
preprocess
in class XJep
ParseException
public java.lang.Object getValueAsObject()
JEP
getValueAsObject
in class JEP
http://www.singularsys.com/jep Copyright © 2007 Singular Systems