Description
JEP is a Java package for parsing and evaluating mathematical expressions. It currently supports user defined variables, constants, and functions. A number of common mathematical functions and constants are included.
Features
Easy-to-use package for parsing mathematical expressions
Supports boolean expressions (with !, &&, ||, <, >, !=, ==, >=, and <=)
Variables can be part of the expression
The values of the variables can be set externally
The expression does not to be parsed again for each time the variables change
All common functions (sin(), cos(), tan()...) included
Extendable through user defined functions
Predefined constants such as 'pi' and 'e'
Support for complex numbers and strings
Package is delivered with JavaCC grammar from which the main classes are generated
Goals
Create an open-source package that can be used for educational purposes in the fields of Engineering, Mathematics and Computer Science
Easy integration in programs that need expression evaluation
Stable, comprehensive source code for people wanting to learn more about parsing
Extendibility through good class structure
License
This package is licensed under the GNU General Public License (GPL). The terms in this license apply to everyone, except for use in the game "Martello Tower" written exclusively for "The Matthew Holland School, Nottinghamshire".
http://jep.sourceforge.net/