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:
Serializable
An extension of the DJep class with Matrix support.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DimensionVisitorprotected MatrixFactoryIprotected MatrixFieldIFields inherited from class com.singularsys.extensions.xjep.XJep
cleaner, commandv, copier, extractor, polyv, rewritev, subv, tuFields inherited from class com.singularsys.jep.Jep
additionalComponents, allowAssignment, allowUndeclared, evaluator, funTab, implicitMul, lastRootNode, nodeFac, numFac, opTab, parser, pv, varFac, varTab -
Constructor Summary
ConstructorsConstructorDescriptionMDJep()MDJep(MDJepComponents dJepComponents) MDJep(JepComponent... components) -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds the standard set of differentiation rules.voidCalculates dimensions for a node.protected voidMethods inherited from class com.singularsys.extensions.djep.DJep
addDiffRule, differentiate, differentiate, getDifferentiationVisitor, replacePartialDerivativeByExpressionsMethods 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, replaceVariablesByExpressions, rewrite, simplify, substitute, substitute, substitute, substitute, substitute, substitute, substituteConstantVariablesMethods inherited from class com.singularsys.jep.Jep
addConstant, addDefaultComponents, addFunction, addStandardConstants, addVariable, addVariable, addVariable, addVariable, continueParsing, evaluate, evaluate, evaluateD, getAdditionalComponent, getAdditionalComponentExact, getAdditionalComponents, getAllowAssignment, getAllowUndeclared, getDefaultValue, getEvaluator, getFunctionTable, getImplicitMul, getLastRootNode, getNodeFactory, getNumberFactory, getOperatorTable, getOperatorTable2, 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, setVariableValue, toString, tryAddConstant
-
Field Details
-
mfact
-
mfield
-
dimv
-
-
Constructor Details
-
MDJep
public MDJep() -
MDJep
-
MDJep
-
-
Method Details
-
setXComponentInternal
- 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
Calculates dimensions for a node.- Parameters:
node-- Throws:
ParseException
-
getMatrixFactory
-
getMfield
-
getDimensionVisitor
-