public class MacroDiffRules extends ChainRuleDiffRules
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)");
Constructor and Description |
---|
MacroDiffRules(DJep djep,
String inName,
Node node)
Create a differention rule for function with 1 argument
|
MacroDiffRules(DJep djep,
String inName,
PostfixMathCommandI inPfmc,
String rule)
Create a differention rule for function with 1 argument
|
MacroDiffRules(DJep djep,
String inName,
PostfixMathCommandI inPfmc,
String[] inRules)
Create a differentation rule for function with n arguments.
|
MacroDiffRules(DJep djep,
String inName,
PostfixMathCommandI inPfmc,
String rule1,
String rule2)
Create a differention rule for function with 2 arguments.
|
MacroDiffRules(DJep djep,
String inName,
String rule)
Create a differention rule for function with 1 argument
|
MacroDiffRules(DJep djep,
String inName,
String[] inRules)
Create a differentation rule for function with n arguments.
|
MacroDiffRules(DJep djep,
String inName,
String rule1,
String rule2)
Create a differention rule for function with 2 arguments.
|
public MacroDiffRules(DJep djep, String inName, Node node) throws ParseException
inName
- name of functionnode
- a tree represention differation of function wrt "x"ParseException
public MacroDiffRules(DJep djep, String inName, String rule) throws ParseException
inName
- name of functionrule
- a string represention differation of a function wrt "x"ParseException
public MacroDiffRules(DJep djep, String inName, PostfixMathCommandI inPfmc, String rule) throws ParseException
inName
- name of functioninPfmc
- PostfixMathCommandI for functionrule
- a string represention differation of function wrt "x"ParseException
public MacroDiffRules(DJep djep, String inName, PostfixMathCommandI inPfmc, String rule1, 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, String inName, String rule1, 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, String inName, PostfixMathCommandI inPfmc, String[] inRules) throws ParseException
inName
- name of functioninPfmc
- PostfixMathCommandI for functionParseException
public MacroDiffRules(DJep djep, String inName, String[] inRules) throws ParseException
inName
- name of functioninRules
- an array of strings representation differentation of function wrt "x1",...ParseException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics