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 DimensionVisitordimvprotected MatrixFactoryImfactprotected MatrixFieldImfield-
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 booleanaddStandardDiffRules()Adds the standard set of differentiation rules.voidcalcDims(Node node)Calculates dimensions for a node.DimensionVisitorgetDimensionVisitor()MatrixFactoryIgetMatrixFactory()MatrixFieldIgetMfield()protected voidsetXComponentInternal(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:
setXComponentInternalin classDJep
-
addStandardDiffRules
public boolean addStandardDiffRules()
Description copied from class:DJepAdds 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:
addStandardDiffRulesin 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()
-
-