This project gives a mathematical parser for converting a simple string expression into a result which can be managed for using in other calculations, all in Java.
Using a couple lines of code, you'll be able to parse complex arithmetic expressions efficiently. This library is powered by Dijkstra's Shuting-yard algorithm.
The library has no dependencies with other external libraries.
Dependency
<dependency>
<groupId>com.google.code.mathparser-java</groupId>
<artifactId>mathparser-java</artifactId>
<version>1.0.0</version>
</dependency>
Expressions supported (Mar/09/2013)
- Arithmetic operations.
...