Skip to content
/ rpn4s Public

Lightweight library which helps you to evaluate math expressions

License

Notifications You must be signed in to change notification settings

VEINHORN/rpn4s

Repository files navigation

rpn-scala

rpn-scala is a lightweight Scala library which helps you to evaluate math expressions. It's based on reverse polish notation and Shunting-yard algorithm algorithms.

Key features:

  • operator priorities
  • support functions and inner functions

Check out tests for more use cases.

Functions

The library supports different functions such as sin, cos, min, max, etc. You also can provide your own function by PR.

Installation

To grab the library just put this lines to your build.sbt:

resolvers += Resolver.bintrayRepo("veinhorn", "maven")

"com.github.veinhorn" %% "rpn-core" % "0.0.1"

About

Lightweight library which helps you to evaluate math expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages