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, toString
calcValue, getEquation, hasEquation
getHook, getValue, hasValidValue, hookKeys, isConstant, removeHook, setHook, setIsConstant, setValidValue, setValue, setValue, setValueRaw
protected PartialDerivative(DVariable var, java.lang.String[] derivnames)
DVariable
.public java.lang.String getName()
Variable
public DVariable getRoot()
public java.lang.String[] getDnames()
public java.lang.String toString()
XVariable
public PartialDerivative findDerivative(java.lang.String dname, DJep jep) throws ParseException
ParseException
public void update(java.util.Observable arg0, java.lang.Object arg1)
update
in interface java.util.Observer
Observer.update(java.util.Observable, java.lang.Object)
public boolean derivativeIsTrivallyZero()
derivativeIsTrivallyZero
in class DVariable
Copyright © 2018 Singular Systems http://www.singularsys.com/jep