public class PartialDerivative extends DVariable implements java.util.Observer
derivatives| Modifier | Constructor and Description |
|---|---|
protected |
PartialDerivative(DVariable var,
java.lang.String[] derivnames)
Protected constructor, should only be constructed
through the findDerivative method in
DVariable. |
protected |
PartialDerivative(DVariable var,
java.lang.String[] derivnames,
Node deriv) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
derivativeIsTrivallyZero() |
PartialDerivative |
findDerivative(java.lang.String dname,
DJep jep) |
java.lang.String[] |
getDnames() |
java.lang.String |
getName()
Returns the variable name.
|
DVariable |
getRoot()
Every partial derivative has a root variable
for instance the root variable of dy/dx is y.
|
java.lang.String |
toString()
Returns a string rep of variable with its equation and value.
|
void |
update(java.util.Observable arg0,
java.lang.Object arg1)
When the value of the root object is changed
makes the value of this partial derivative invalid.
|
allDerivatives, calculateDerivative, createDerivative, invalidateAll, makeDerivString, setEquation, toStringcalcValue, getEquation, hasEquationgetHook, getValue, hasValidValue, hookKeys, isConstant, removeHook, setHook, setIsConstant, setValidValue, setValue, setValue, setValueRawprotected PartialDerivative(DVariable var, java.lang.String[] derivnames)
DVariable.public java.lang.String getName()
Variablepublic DVariable getRoot()
public java.lang.String[] getDnames()
public java.lang.String toString()
XVariablepublic PartialDerivative findDerivative(java.lang.String dname, DJep jep) throws ParseException
ParseExceptionpublic void update(java.util.Observable arg0,
java.lang.Object arg1)
update in interface java.util.ObserverObserver.update(java.util.Observable, java.lang.Object)public boolean derivativeIsTrivallyZero()
derivativeIsTrivallyZero in class DVariableCopyright © 2018 Singular Systems http://www.singularsys.com/jep