[comp.sys.handhelds] Storage arithmetic

wscott@EN.ECN.PURDUE.EDU (Wayne H Scott) (03/21/90)

I was glad to discover today that the stoage arithmetic commands (STO+ STO*
SNEG ...) on the HP48 work the why I kept wishing they did on the HP28.
Those commands now work when using local variables.

Let me use the following program as an example:

<< -> a << 'a' 5 STO+ a >> >>

This doesn't do anything useful ( it adds 5 to a number on the stack) but it
does demostrate that STO+ works for local variables.  This program generates
an error on a HP28.

In addition HP has included two more commands INCR and DECR which increment 
and decrement a varaible.  

Why this might seem to be a trivial difference it simplifies many common
programming statments.

Another command that I like is the ->Q function.  (convert to fraction)
If given a algebraic it converts every number in the equation to a fraction!

Just felt like babbling.  Thanks.

_______________________________________________________________________________
Wayne Scott             |  INTERNET:   wscott@en.ecn.purdue.edu
Electrical Engineering  |  BITNET:     wscott%ea.ecn.purdue.edu@purccvm
Purdue University       |  UUCP:      {purdue, pur-ee}!en.ecn.purdue.edu!wscott