-
Notifications
You must be signed in to change notification settings - Fork 0
Q&A
Bartłomiej Góra edited this page Jun 21, 2017
·
9 revisions
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