Package com.singularsys.extensions.djep
Class PartialDerivative
java.lang.Object
com.singularsys.jep.Variable
com.singularsys.extensions.xjep.XVariable
com.singularsys.extensions.djep.DVariable
com.singularsys.extensions.djep.PartialDerivative
- All Implemented Interfaces:
Serializable
Contains information about a PartialDerivative of a variable.
- Author:
- Rich Morris Created on 29-Oct-2003 Since Jep 4.1 it no longer implements Observer so cannot detect if its root variable changes.
- See Also:
-
Field Summary
Fields inherited from class com.singularsys.extensions.djep.DVariable
derivatives -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPartialDerivative(DVariable var, String[] derivnames) Protected constructor, should only be constructed through the findDerivative method inDVariable.protectedPartialDerivative(DVariable var, String[] derivnames, Node deriv) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfindDerivative(String dname, DJep jep) String[]getName()Returns the variable name.getRoot()Every partial derivative has a root variable for instance the root variable of dy/dx is y.toString()Returns a string rep of variable with its equation and value.Methods inherited from class com.singularsys.extensions.djep.DVariable
allDerivatives, calculateDerivative, createDerivative, getDerivative, invalidateAll, makeDerivString, setEquation, toStringMethods inherited from class com.singularsys.extensions.xjep.XVariable
calcValue, getEquation, hasEquationMethods inherited from class com.singularsys.jep.Variable
copyPropertiesFrom, getHook, getValue, hasValidValue, hookKeys, isConstant, removeHook, setHook, setIsConstant, setValidValue, setValue, setValueRaw
-
Constructor Details
-
PartialDerivative
Protected constructor, should only be constructed through the findDerivative method inDVariable. -
PartialDerivative
-
-
Method Details
-
getName
Description copied from class:VariableReturns the variable name. -
getRoot
Every partial derivative has a root variable for instance the root variable of dy/dx is y. This method returns than variable. -
getDnames
-
toString
Description copied from class:XVariableReturns a string rep of variable with its equation and value. -
findDerivative
- Throws:
ParseException
-
derivativeIsTriviallyZero
public boolean derivativeIsTriviallyZero()- Overrides:
derivativeIsTriviallyZeroin classDVariable
-