|
Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment. |
|
Thread Tools |
2nd Jan 2004, 10:18 pm | #1 |
Retired Dormant Member
Join Date: Dec 2003
Location: North London, UK.
Posts: 6,168
|
HP calculators & reverse Polish logic
I have a HP35 calculator (the 1st ever scientific pocket calc in the world unless somebody knows otherwise) which I picked up years ago at a BVWS auction. Works well. If it weren't for the short (but rechargeable) battery life I might well use it every day.
They cost over £200 when new in about 1971! I saw one when it was new, securely locked into a fixture on a desk at Imperial College. I love the reverse Polish logic as used in the older HP calcs. Any other fans out there? |
3rd Jan 2004, 12:38 pm | #2 |
Administrator
Join Date: Dec 2002
Location: Cardiff
Posts: 9,060
|
Re: HP calculators & reverse Polish logic
I had to use reverse Polish logic when I was programming with Forth at work a few years ago, and I had trouble getting my head around it initially. Once you get to grips with it it's OK, but when you have to work with languages using standard and reverse Polish logic at the same time, it's easy to get confused....
For thse who don't know what reverse Polish logic is, in essence you have to store the numbers before you can do anything with them. It came about because of the way early calculators and programming languages like Forth use a stack for storing numbers. With the HP calculator (as I understand it) you enter the first value and press [STORE], then you enter the second value then press the button for whatever function you want to do with it and the stored number. So if you pressed [2] [STORE] [2] [+] the display would show " 4 " . From a low-level software point of view it's simpler because the instructions come in a more usable order. |
3rd Jan 2004, 1:06 pm | #3 |
Retired Dormant Member
Join Date: Dec 2003
Location: North London, UK.
Posts: 6,168
|
Re: HP calculators & reverse Polish logic
And you can never get mismatched brackets because there aren't any. For a calculation like:
(4+3) x (5+2) you would do the following: 4 ENTER 3 + 5 ENTER 2 + x This is exactly how you would do it by hand, work out the contents of each bracket, then do the multiplication. It always works for any expression on a HP calc provided you work from the innermost brackets outwards. The stack is not deep enough to have more than a couple of pending operations so: (4+3) x (5+2) x (6+1) x (7+3) would be done as: 4 ENTER 3 + 5 ENTER 2 + x 6 ENTER 1 + x 7 ENTER 3 + x and not as: 4 ENTER 3 + 5 ENTER 2 + 6 ENTER 1 + 7 ENTER 3 + xxx which is logically equivalent and correct but would overflow the stack. |
4th Jan 2004, 1:23 pm | #4 |
Dekatron
Join Date: May 2003
Location: Edinburgh, UK.
Posts: 3,273
|
Re: HP calculators & reverse Polish logic
Hi Ppppenguin,
I totally agree with your RPN enthusiasm. RPN calculators are just magic in comparison with the usual four function + equals jobs. The RPN stack almost seems to read your mind regarding what you want to do next and if you make a mistake with data entry or a wrong operator, RPN is totally forgiving whereas with four function you invariably end up re-starting from scratch. Long live RPN, Peter. |
4th Jan 2004, 8:39 pm | #5 |
Hexode
Join Date: Apr 2003
Location: Cotswolds, UK.
Posts: 465
|
Re: HP calculators & reverse Polish logic
Hi,
I learnt RPN for the first ever calculator I owned, a Sinclair Scientific. I loved it. I got hold of a working example several years ago and was astounded at how slow it was. It's funny how memory plays tricks . I then had several HP41s which I also thought were wonderful. I have also had a lot of fun with Forth and similar languages which has led me to really having a " thing " to do with RPN. All power to the people who put this system together. Robin |
6th Sep 2006, 1:26 pm | #6 |
Hexode
Join Date: Feb 2006
Location: Diss, Norfolk, UK.
Posts: 386
|
Re: HP calculators & reverse Polish logic
I also have a HP35, and now use a 32S. Great!
Another non-technical advantage, I always used them at work and they never went missing because no one knew how to use them! |
6th Sep 2006, 6:51 pm | #7 |
Rest in Peace
Join Date: Jun 2006
Location: North West Northamptonshire, UK.
Posts: 346
|
Re: HP calculators & reverse Polish logic
The Anita 1011 IC and LSI also used RPN
ALAN |
6th Sep 2006, 8:46 pm | #8 |
Dekatron
Join Date: Jan 2005
Location: Oxford, UK.
Posts: 17,820
|
Re: HP calculators & reverse Polish logic
My (elderly) physics teacher had one until the early 90s, but had to abandon it when the keyboard begain to fail. He too apparently loved the "reverse Polish logic" (we all thought he'd made that term up).
His had a little built-in magnetic strip reader for storing programs on, I think Nick. |
6th Sep 2006, 8:55 pm | #9 | |
Dekatron
Join Date: Apr 2005
Location: Bewdley, Worcestershire, UK.
Posts: 4,736
|
Re: HP calculators & reverse Polish logic
Quote:
These brave machines would also have a bash at calculating the value of infinity. Entering 1+0 then 'divide' usually gave a numeric answer, different each time of course... it was a lot more fun than a slide rule. Phil
__________________
Phil Optimist [n]: One who is not in possession of the full facts |
|
6th Sep 2006, 11:35 pm | #10 | |
Rest in Peace
Join Date: Jun 2006
Location: Chard, South Somerset, UK.
Posts: 7,457
|
Re: HP calculators & reverse Polish logic
Quote:
Setting aside the (trivial?) issue of avoiding stack overflow -which is a hardware-specific limitation anyway - the one thing that I really appreciate about RPL is that it is so logical! Unlike the English language , in RPL you effectively state what it is you want to process, define the process and then perform the operation. The concepts flow naturally. With the English language, there are so many bits of information that you have to "store" in a scratch-pad in your memory until you then find out what qualifiers apply to these bits and then what you you have to recall what the defined operation was. For example, take the very simple instruction "open the green door". In RPL this becomes "door, green, open door". No ambiguity, no confusion. Totally logical. Al. |
|
7th Sep 2006, 12:29 am | #11 | |
Retired Dormant Member
Join Date: May 2005
Location: Aarhus, Denmark
Posts: 281
|
Re: HP calculators & reverse Polish logic
Quote:
My 16 years old HP-42S works as well as on the day it was bought, which is to say perfectly! At uni people would look at you oddly if you choose any calculator brand but HP. Texas Instruments did run some programs to try to convince people to switch, but with little to show for it (at the time). HP still makes Reverse Polish Notation calculators, even though these days they appear to allow for the sacreligious modus operandi called 'algebraic data entry' in addition to RPN. Once you get to try RPN there is no going back as far as I know. I still struggle and stutter my way through the parenthesis, whenever I am forced to do calculations on a lower form of pocket calculator. Frank N. PS: There were several versions of HP pocket calculators going back to the mid seventies, which were equipped with magnetic card reader/writers for storing data and programs. |
|
8th Sep 2006, 2:23 pm | #12 |
Triode
Join Date: Feb 2004
Location: Halikko, Finland
Posts: 25
|
Re: HP calculators & reverse Polish logic
Hi,
My first calculator was also HP35 (I still have it!) and I learned to use RPN. After that I have had quite many HP models and actuallay the RPN is the only "keying" which I can without thinking individual steps. Last 20 years I have been using HP12C and 15C models. The RPN is excellent, no-one want to borrow your calculator! BR Ake |