Class MDJep
- java.lang.Object
-
- com.singularsys.jep.Jep
-
- com.singularsys.extensions.xjep.XJep
-
- com.singularsys.extensions.djep.DJep
-
- com.singularsys.extensions.matrixdiff.MDJep
-
- All Implemented Interfaces:
java.io.Serializable
public class MDJep extends DJep
An extension of the DJep class with Matrix support.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DimensionVisitor
dimv
protected MatrixFactoryI
mfact
protected MatrixFieldI
mfield
-
Fields inherited from class com.singularsys.extensions.xjep.XJep
cleaner, commandv, copier, extractor, polyv, rewritev, subv, tu
-
Fields inherited from class com.singularsys.jep.Jep
additionalComponents, allowAssignment, allowUndeclared, evaluator, funTab, implicitMul, lastRootNode, nodeFac, numFac, opTab, parser, pv, varFac, varTab
-
-
Constructor Summary
Constructors Constructor Description MDJep()
MDJep(MDJepComponents dJepComponents)
MDJep(JepComponent... components)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addStandardDiffRules()
Adds the standard set of differentiation rules.void
calcDims(Node node)
Calculates dimensions for a node.DimensionVisitor
getDimensionVisitor()
MatrixFactoryI
getMatrixFactory()
MatrixFieldI
getMfield()
protected void
setXComponentInternal(JepComponent comp)
-
Methods inherited from class com.singularsys.extensions.djep.DJep
addDiffRule, differentiate, differentiate, getDifferentationVisitor, replacePartialDerivativeByExpressions
-
Methods inherited from class com.singularsys.extensions.xjep.XJep
addRewriteRule, calcVarValue, clean, deepCopy, equals, expand, getCommandVisitor, getCopier, getExpressionCleaner, getExtractor, getPolynomialCreator, getRewriteVisitor, getSubstitutionVisitor, getTreeUtils, getVarsInEquation, getVarsInEquation, preprocess, recursiveGetVarsInEquation, replaceRHSVariablesByEquations, replaceVariableByExpressions, rewrite, simplify, substitute, substitute, substitute, substitute, substitute, substitute, substituteConstantVariables
-
Methods inherited from class com.singularsys.jep.Jep
addConstant, addDefaultComponents, addFunction, addStandardConstants, addVariable, addVariable, addVariable, addVariable, continueParsing, evaluate, evaluate, evaluateD, getAdditionalComponent, getAdditionalComponents, getAllowAssignment, getAllowUndeclared, getDefaultValue, getEvaluator, getFunctionTable, getImplicitMul, getLastRootNode, getNodeFactory, getNumberFactory, getOperatorTable, getParser, getPrintVisitor, getVariable, getVariableFactory, getVariableTable, getVariableValue, initMultiParse, initMultiParse, parse, parse, print, print, print, println, println, println, reinitializeComponents, rootNodeToString, setAllowAssignment, setAllowUndeclared, setComponent, setComponentInternal, setComponents, setComponentsInternal, setDefaultValue, setImplicitMul, setVariable, toString, tryAddConstant
-
-
-
-
Field Detail
-
mfact
protected MatrixFactoryI mfact
-
mfield
protected MatrixFieldI mfield
-
dimv
protected DimensionVisitor dimv
-
-
Constructor Detail
-
MDJep
public MDJep()
-
MDJep
public MDJep(JepComponent... components)
-
MDJep
public MDJep(MDJepComponents dJepComponents)
-
-
Method Detail
-
setXComponentInternal
protected void setXComponentInternal(JepComponent comp)
- Overrides:
setXComponentInternal
in classDJep
-
addStandardDiffRules
public boolean addStandardDiffRules()
Description copied from class:DJep
Adds the standard set of differentiation rules. Corresponds to all standard functions in the Jep plus a few more.sin,cos,tan,asin,acos,atan,sinh,cosh,tanh,asinh,acosh,atanh sqrt,log,ln,abs,angle sum,im,re are handled separately. rand and mod currently un-handled Also adds rules for functions not in Jep function list: sec,cosec,cot,exp,pow,sgn
- Overrides:
addStandardDiffRules
in classDJep
- Returns:
- false on error
-
calcDims
public void calcDims(Node node) throws ParseException
Calculates dimensions for a node.- Parameters:
node
-- Throws:
ParseException
-
getMatrixFactory
public MatrixFactoryI getMatrixFactory()
-
getMfield
public MatrixFieldI getMfield()
-
getDimensionVisitor
public DimensionVisitor getDimensionVisitor()
-
-