shithub: rpn

ref: 0f675d0b71518d0acdc49dd9b60d937566446140
dir: /README/

View raw version
This is an rpn calculator with basic trigonometric functions. It runs in the terminal, which acts like a ticker tape of the state of the calculations througout the session.

There is a four position stack as in HP RPN calculators, labeled x, y, z, t from bottom to top. Trigonometric functions act on x, and algebraic functions act on y and x. It should be familiar to users of RPN calculators.

Entering pi loads the constant pi into x.

There are also exponentiation and logarithmic functions.

Enter r to roll, which drops the stack and puts x into t. 

Enter d to drop, which drops the bottom value off the stack and duplicates t into z.

Enter x to swap x and y on the stack.

Hitting enter will re-enter the last x value.

To exit, enter q, to clear the stack to all zeros, enter cls.