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.
Working on (Mar/09/2013)
- Geometrical functions support
License
Apache License V2.0Follow MathParser Java - Math Parser library
nel_h2
Gen AI apps are built with MongoDB Atlas
MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
Rate This Project
Login To Rate This Project
User Reviews
-
Great piece of software, saved me counting injuries from banging my head on the keyboard trying to parse a string as an expression. Just have one complaint, which is the ability to add decimal numbers into an expression without throwing an InvalidCharacterException error (Example 5+.5).