This is the Linux app named mep4j whose latest release can be downloaded as mep4j-1.0.1.jar. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named mep4j with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
mep4j
Ad
DESCRIPTION
Math Expression Parser 4 Java
MEP4J is a high performance math expression strings parser for Java (J2SE >= 5).
Compare its performance against similiar libraries and let me know your experince.
The library manages the 5 operators (+, -, /, %, *) together with the following functions:
- "abs"
- "cos"
- "sin"
- "acos"
- "asin"
- "cosh"
- "sinh"
- "tan",
- "tanh"
- "atan"
- "sqrt"
- "cbrt"
- "root"
- "log"
- "log10"
- "log1p"
- "exp"
- "expm1"
- "atan2"
- "pow"
The library supports variables (case insensitive), custom and pre-loaded ("e" and "pi").
Example:
int num_variations = 100;
int init_value = 10;
MathParser mathParser = new MathParser();
mathParser.putVariable("x", init_value);
mathParser.parse("2 + (7 - 5) * 3.14159 * pow(x, (12-10)) + sin(-3.141)");
for(int i = init_value; i < num_variations; ++i) {
Double result = mathParser.execute();
mathParser.putVariable("x", i);
}
Features
- Math
- Parser
- Performance
- Java
- String
Audience
Aerospace, Information Technology, Financial and Insurance Industry, Telecommunications Industry, Developers, Security
Programming Language
Java
Categories
This is an application that can also be fetched from https://sourceforge.net/projects/mep4j/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.