Skip to content

Latest commit

 

History

History
executable file
·
43 lines (32 loc) · 2 KB

File metadata and controls

executable file
·
43 lines (32 loc) · 2 KB

ParserNG

ParserNG 0.2.3 has been released on maven central!
comes with couple microsecond (on decent hardware and) expression solving ability while maintaining its full feature stack. Graphing feels butter-smooth and iterations shouldn't feel so iterative.

At 5 microsecond, moderately complex expressions such as

String s6 = "5*sin(3+2)/(4*3-2)";

can be evaluated almost 200 thousand times per second.

The model of a Matrix has also been optimized to use a 1D array internally. This makes it faster due to memory locality of Matrix data.

Also, we support eigenvalues and eigenvectors as inbuilt methods, so enjoy!

Back with a bang! ParserNG 0.2.2 has been released on maven-central!

What's new?

  1. Breaking change!!! Package name change. ParserNG now has a proper root package name, com.github.gbenroscience
  2. Really cool!!! -> Speed upgrades of up to 10x to 40x in the base algebraic expression parser. This means more speedy and energy efficient iterative calculations and graphing!
  3. Very nice to have -> ParserNG now comes with a Java platform agnostic graphing capability. All the developer needs to do is to implement 2 interfaces:
com.github.gbenroscience.math.graph.DrawingContext
com.github.gbenroscience.math.graph.AbstractView

and pass the instance to

com.github.gbenroscience.math.graph.Grid

So you can use the same codebase to plot graphs on Android, JavaFX, Swing and other Java platforms. We have made the required implementations of DrawingContext(so called adapters) for the most popular Java platforms(Android, Swing and JavaFX) available in GRAPHING.md If you have more platforms in mind, we will be excited to have you contribute the code and make the ParserNG even more versatile. Enjoy!

Fun fact: here are some interactions with ParserNG hosted on maven-central within Dec 2025 and Feb 11 2026: We had 970 total downloads from 193 unique sources across 82 companies See here