public class DVariable extends XVariable
PartialDerivative
.
The derivatives are stored in a hashtable index by
the sorted names of derivatives.
i.e. d^2f/dxdy, and d^2f/dydx will both be indexed by {"x","y"}.
df/dx is indexed by {"x"}, d^2f/dx^2 is index by {"x","x"}.
Partial derivatives are calculated as required by the
findDerivative method.Modifier and Type | Method and Description |
---|---|
Enumeration |
allDerivatives()
Enumerate all the derivatives of this variable.
|
void |
invalidateAll()
makes value and values of all derivatives invalid.
|
static String |
makeDerivString(String rootname,
String[] dnames)
Produces a string to represent the derivative.
|
void |
setEquation(Node eqn)
sets the equation
|
String |
toString(PrintVisitor bpv)
Returns a string rep of variable with its equation and value.
|
calcValue, getEquation, hasEquation
getName, getValue, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, toString
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
public void setEquation(Node eqn)
setEquation
in class XVariable
public void invalidateAll()
public static String makeDerivString(String rootname, String[] dnames)
rootname
- name of the variable we are calculating the derivative of.dnames
- An array of the names of each of the partial derivatives.public String toString(PrintVisitor bpv)
XVariable
public Enumeration allDerivatives()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics