public class AdditionDiffRule extends Object implements DiffRulesI
Constructor and Description |
---|
AdditionDiffRule(String inName) |
Modifier and Type | Method and Description |
---|---|
Node |
differentiate(ASTFunNode node,
String var,
Node[] children,
Node[] dchildren,
DJep djep)
Returns the top node of of the derivative of this function
wrt to variable var.
|
String |
getName()
Returns the name of the function.
|
String |
toString()
Returns a string representation of the rule.
|
public AdditionDiffRule(String inName)
public String toString()
DiffRulesI
toString
in interface DiffRulesI
toString
in class Object
public String getName()
DiffRulesI
getName
in interface DiffRulesI
public Node differentiate(ASTFunNode node, String var, Node[] children, Node[] dchildren, DJep djep) throws ParseException
DiffRulesI
differentiate
in interface DiffRulesI
var
- 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.Jas4pp 1.5 © Java Analysis Studio for Particle Physics