Skip to content
Bartłomiej Góra edited this page Jun 19, 2017 · 5 revisions

Welcome to the RPNLibrary wiki!

Simple RPN (Reverse Polish Notation) Library for Java. It is based on Dijkstra Algorithm. (https://en.wikipedia.org/wiki/Reverse_Polish_notation)

functionalities: +,-,*,/ with () Sin, cos, tg, ctg.

example:

pl.bgora.rpn.Calculator calc = Calculator.createDefaultCalculator();
BigDecimal result = calc.calculate("2^3*(12/6)+18/3+5.0/2");
Clone this wiki locally