shithub: rpn


branches: front

Clone

clone: git://shithub.us/flowerss/rpn gits://shithub.us/flowerss/rpn
push: hjgit://shithub.us/flowerss/rpn
patches to: flowerss@cranky.ca

Last commit

2420a49c – Scott Flowers <flowerss@cranky.ca> authored on 2025/10/23 22:46
genericize mkfile

About

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.