|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsmp.djep.djep.diffRules.MultiplyDiffRule
public class MultiplyDiffRule
Diffrentiates a product with respect to var. diff(y*z,x) -> diff(y,x)*z+y*diff(z,x)
| Constructor Summary | |
|---|---|
MultiplyDiffRule(java.lang.String inName)
|
|
MultiplyDiffRule(java.lang.String inName,
Operator op)
|
|
| Method Summary | |
|---|---|
Node |
differentiate(ASTFunNode node,
java.lang.String var,
Node[] children,
Node[] dchildren,
DJep djep)
Returns the top node of of the derivative of this function wrt to variable var. |
java.lang.String |
getName()
Returns the name of the function. |
java.lang.String |
toString()
Returns a string representation of the rule. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MultiplyDiffRule(java.lang.String inName)
public MultiplyDiffRule(java.lang.String inName,
Operator op)
| Method Detail |
|---|
public java.lang.String toString()
DiffRulesI
toString in interface DiffRulesItoString in class java.lang.Objectpublic java.lang.String getName()
DiffRulesI
getName in interface DiffRulesI
public Node differentiate(ASTFunNode node,
java.lang.String var,
Node[] children,
Node[] dchildren,
DJep djep)
throws ParseException
DiffRulesI
differentiate in interface DiffRulesIvar - The name of variable to differentiate wrt to.children - the arguments of the functiondchildren - the derivatives of each argument of the function.
ParseException - if there is some problem in compiling the derivative.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||