|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lsmp.djep.djep.diffRules.ChainRuleDiffRules
org.lsmp.djep.djep.diffRules.MacroDiffRules
public class MacroDiffRules
Rules are specfied by a set of strings or trees of nodes. The standard chain rule is applied
diff(f(g(x),h(x)),x) -> df/dg dg/dx + df/dh dh/dxfor example
DifferentiationVisitor dv = new DifferentiationVisitor(new TreeUtils(jep)); DiffRulesI rule = new MacroDiffRules(dv,"sin","cos(x)");
| Field Summary |
|---|
| Fields inherited from class org.lsmp.djep.djep.diffRules.ChainRuleDiffRules |
|---|
name, pfmc, rules |
| Constructor Summary | |
|---|---|
MacroDiffRules(DJep djep,
java.lang.String inName,
Node node)
Create a differention rule for function with 1 argument |
|
MacroDiffRules(DJep djep,
java.lang.String inName,
PostfixMathCommandI inPfmc,
java.lang.String rule)
Create a differention rule for function with 1 argument |
|
MacroDiffRules(DJep djep,
java.lang.String inName,
PostfixMathCommandI inPfmc,
java.lang.String[] inRules)
Create a differentation rule for function with n arguments. |
|
MacroDiffRules(DJep djep,
java.lang.String inName,
PostfixMathCommandI inPfmc,
java.lang.String rule1,
java.lang.String rule2)
Create a differention rule for function with 2 arguments. |
|
MacroDiffRules(DJep djep,
java.lang.String inName,
java.lang.String rule)
Create a differention rule for function with 1 argument |
|
MacroDiffRules(DJep djep,
java.lang.String inName,
java.lang.String[] inRules)
Create a differentation rule for function with n arguments. |
|
MacroDiffRules(DJep djep,
java.lang.String inName,
java.lang.String rule1,
java.lang.String rule2)
Create a differention rule for function with 2 arguments. |
|
| Method Summary |
|---|
| Methods inherited from class org.lsmp.djep.djep.diffRules.ChainRuleDiffRules |
|---|
differentiate, getName, getNumRules, getPfmc, getRule, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MacroDiffRules(DJep djep,
java.lang.String inName,
Node node)
throws ParseException
inName - name of functionnode - a tree represention differation of function wrt "x"
ParseException
public MacroDiffRules(DJep djep,
java.lang.String inName,
java.lang.String rule)
throws ParseException
inName - name of functionrule - a string represention differation of a function wrt "x"
ParseException
public MacroDiffRules(DJep djep,
java.lang.String inName,
PostfixMathCommandI inPfmc,
java.lang.String rule)
throws ParseException
inName - name of functioninPfmc - PostfixMathCommandI for functionrule - a string represention differation of function wrt "x"
ParseException
public MacroDiffRules(DJep djep,
java.lang.String inName,
PostfixMathCommandI inPfmc,
java.lang.String rule1,
java.lang.String rule2)
throws ParseException
inName - name of functioninPfmc - PostfixMathCommandI for functionrule1 - a string represention differation of function wrt "x"rule2 - a string represention differation of function wrt "y"
ParseException
public MacroDiffRules(DJep djep,
java.lang.String inName,
java.lang.String rule1,
java.lang.String rule2)
throws ParseException
inName - name of functionrule1 - a string represention differation of function wrt "x"rule2 - a string represention differation of function wrt "y"
ParseException
public MacroDiffRules(DJep djep,
java.lang.String inName,
PostfixMathCommandI inPfmc,
java.lang.String[] inRules)
throws ParseException
inName - name of functioninPfmc - PostfixMathCommandI for function
ParseException
public MacroDiffRules(DJep djep,
java.lang.String inName,
java.lang.String[] inRules)
throws ParseException
inName - name of functioninRules - an array of strings representation differentation of function wrt "x1",...
ParseException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||