public class PartialDerivative extends XVariable implements java.util.Observer
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 |
---|---|
PartialDerivative |
findDerivative(java.lang.String dname,
DJep jep) |
java.lang.String[] |
getDnames() |
java.lang.String |
getName() |
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 with the variable name followed by it's 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.
|
calcValue, getEquation, hasEquation, setEquation, toString
getValue, hasValidValue, isConstant, setIsConstant, setValidValue, setValue, setValueRaw
protected PartialDerivative(DVariable var, java.lang.String[] derivnames)
DVariable
.public DVariable getRoot()
public java.lang.String[] getDnames()
public java.lang.String toString()
Variable
a: 10If the variable is a constant the string " (Constant" is appended.
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)
http://www.singularsys.com/jep Copyright © 2007 Singular Systems