The Museum of HP Calculators

HP Forum Archive 18

[ Return to Index | Top of Index ]

Var arithmetic on RPL machine?
Message #1 Posted by Hal Bitton in Boise on 16 June 2008, 1:54 p.m.

Hi everybody,
Is there a way to do what would be the equivalent of register arithmetic on an RPN machine on a 48gx/50g ? I.e., on a 15c I would go 5 sto + 1 to add 5 to the contents of register 1. How would I do the same to the contents of a variable with a 48gx/50g? I know I could recall the variable to the stack, do the operation, then overwrite back into the variable, but is there not a tidier way? Can't seem to find such in the 48g owners manual.
Thanks and best regards, Hal

      
Re: Var arithmetic on RPL machine?
Message #2 Posted by Ivan Nejgebauer on 16 June 2008, 4:04 p.m.,
in response to message #1 by Hal Bitton in Boise

Quote:
Is there a way to do what would be the equivalent of register arithmetic on an RPN machine on a 48gx/50g ?

The 48SX has STO{+,-,*,/} and so do the later models, I suppose. They're used like STO, e.g.,

5 'X' STO+

although

'X' 5 STO+

also works; if both arguments are variable names, the one in level 1 is taken as the target.

i.

      
Re: Var arithmetic on RPL machine?
Message #3 Posted by Jonathan Purvis (New Zealand) on 16 June 2008, 4:10 p.m.,
in response to message #1 by Hal Bitton in Boise

There is a full suite of storage arithmetic operations. You can find them in PRG MEM ARITH menu path on the 50G or MEMORY ARITH menu path on the 48GX.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall