This program requires installed xxhash library. It must me avalible from pkg-config.
2 5 + - 2 + 5
4 3 - 5 * - (4-3)*5
- + addition
- - subtraction
- * multiplication
- \ division
- ^ exponentiation
- sqrt square root
- abs absolute value
- sin
- cos
PIPI number (3.14...)eEuler's number (2.71...) Each constant has 100 digits after.. This is more than enought to fully filldoubleC++ type(64-bit precision).
You are able to define your own one argument functions. To do it, write command def <name>. After that you will enter formula with x variable and from now you can call it like other one argument functions. They are much slower than build-in functions, but they are faster than expressions with no functions.
RPNParser also supports normal polish notation. To enable that pass --pn command line argument or exectue switch command. Parsing speed will not be affected, but there is some setup before calling parser, so it will take a little bit longer to execute it.