See: Description
Interface | Description |
---|---|
DiffRulesI |
Defines a set of rules describing how to differentiate a function.
|
Class | Description |
---|---|
DEquationExtractor |
Extract equations for symbolic variables.
|
DExpressionCleaner |
An extension of
ExpressionCleaner which can simplify
partial derivatives. |
Diff |
The diff(f,x) operator.
|
DifferentiationVisitor |
A class for performing differentiation of an expression.
|
DJep |
Adds differentiation facilities to Jep.
|
DJepComponents |
The set of components used by a standard DJep instance.
|
DPrintVisitor |
An extension of PrintVisitor which will print the equations of a variable if required.
|
DVariable |
Holds all info about a variable.
|
DVariableFactory |
A VariableFactory which can work with PartialDerivatives.
|
DVariableTable |
A VariableTable which works with partial derivatives of variables.
|
PartialDerivative |
Contains information about a PartialDerivative of a variable.
|
Enum | Description |
---|---|
DEquationExtractor.Type |
Classes to performs differentiation of equations.
The main class is DJep
which is an extension of the main Jep class but
with an additional method DJep.differentiate(Node,String)
to perform the differentiation of an expression.
Typically the result of differentiation should be simplified
to remove occurrences of redundant expressions (for example
the derivative of x^2.0
is 2.0*x^1.0*1.0
which is simplified to 2.0*x
).
This can be done using the clean(Node)
method.
The actual differentiation is carried out by the
DifferentiationVisitor
class,
which repeatedly applies
of the chain, product and quotient rules as well as rules for individual functions.
For each function a rule is used to specify how to differentiate it.
These are added using the
addDiffRule(DiffRulesI)
method. For example the derivative of sin
is specified using
addDiffRule(new MacroDiffRules(Jep,"sin","cos(x)"))
There are various classes of differentiation rule which
all implement DiffRulesI
and have different behaviours.
Variables can also be differentiated, and the derivative of
y
with respect to x
will be represented
by the PartialDerivative
dy/dx
.
To allow this the DVariable
class
is used to represent a variable and
DVariableTable
and
DVariableFactory
are used to control
the look up of variables and the creation of new variables.
Copyright © 2018 Singular Systems http://www.singularsys.com/jep