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

Welcome to the RPNLibrary wiki!

RPNLibrary Questions and answers

Q: What is RPNLibrary? A: RPNLibrary is Open Source, free to use Reversive Polish Notation library for Java.

Q: How to use RPNLibrary? A: It’s simple, you get the jar from SourceForge, or source from GitHub, and just use the factory:

    import pl.bgora.rpn.Calculator;
    Calculator  calc = Calculator.createDefaultCalculator()

Then user the calculate function:

BigDecimal result = calc.calculate("2^3*(12/6)+18/3+5.0/2");

Q: Which operations, and functions are implemented? A: You can use: +,-,/,* operators, and you can use functions: sin, cos, tg ctg

Clone this wiki locally