DJep - differentiation, vectors and matrices in JEP
The DJep collection of packages offers a number of extensions to the standard JEP package:
- Printing: equations can be easily printed or converted
to strings with intelligent handling of brackets.
- Simplification equations like 2.0*x^1.0*1.0+0.0
equations can be simplified to produce 2.0*x
- Differentiation: equations can be differentiated,
these can be specified either programtically or in the equations themselves.
- Vectors and Matrices: Full support for vector and
matrix operations.
- Utilities for working with parse trees a number of
utilities are available for programtically creating and copying and working
with the parse trees.
- Groups Exact arithmetic over integers rationals
and other groups.
These facilities are offered by packages in the org.lsmp.djep
tree.
Notes: (1) the org.lsmp.djep.xjep.* package also needs to be included when using differentiation.
(2) the org.lsmp.djep.xjep.*, org.lsmp.djep.djep.* org.lsmp.djep.vectorJep.* packages need to be included when using MatrixJep.
Example applications
A number of example applications can be found in the
org.lsmp.djepExamples.*
package. Theres fall into two types AssignmentExample, XJepExample,
PrintExample, DiffExample, VectorExample, VectorPrint, and MatrixSpeed
are simple applications which give examples of different features. The
other types of examples are console applications which allow equations
to be typed in, these are DJepConsole, VectorConsole, MatrixConsole and GroupConsole.
Some JUnit test are available in the
org.lsmp.djepJUnit.* package. These test many features of the packages and illustrate some of the features.