[ANN] Simple RPN Calculator on RevOnline
DunbarX at aol.com
DunbarX at aol.com
Wed Oct 13 15:55:56 EDT 2010
Andre.
Andre.
As a reverse Polish afficionado from the days of the HP-35, I have to tell
you that the following sequence fails:
1- Key in a 6
2- Enter
3- Key in a 5
4- Key in "-" (minus)
In an RPN calculator, the enter key terminates data entry, and the next
argument (or operand) is loaded for immediate action. This is operator postfix
notation. I am sure you know this.
Your minus sign correlates to a "change sign" key on an HP calculator. I
cannot do a subtraction at all. A bug? Or me? But a gorgeous little
calculator. Did you ever see, and I forget which model it was, an HP with all four
stack registers ("X", "Y", "Z", and "T") visible at once in a four line
display? Must have been about 1980 or so. You can watch as you build and collapse
the registers as you work a multi-level calculation.
Regards,
Craig Newman
In a message dated 10/13/10 1:18:30 PM, andre at andregarzia.com writes:
> Folks,
>
> I've decided to share my little RPN Calculator on RevOnline.
>
> http://revonline2.runrev.com/download/stack/518/RPN-Calc
>
> It is quite simple and it has a minimalistic stack (the data structure,
> not
> the file format) implementation on the stack script. I am quite fond of
> this
> little piece. It was quick to implement, I find it pleasing to the eye and
> I
> use it as my default calc on linux
>
> Andre
>
More information about the use-livecode
mailing list