Have You Tried Using Polish or Reverse Polish Notation in Your Calculations?

  • Thread starter Thread starter Nidum
  • Start date Start date
  • Tags Tags
    Notation
AI Thread Summary
The discussion centers on the use of Polish notation and reverse Polish notation (RPN) in computational formulas, highlighting their ability to eliminate ambiguity and streamline calculations. Participants share personal experiences with RPN, particularly its application in HP calculators, such as the HP 11C and HP 12C, which are noted for their effectiveness in scientific and financial calculations. The conversation also mentions the availability of RPN calculators on smartphones and Linux systems, specifically referencing the "dc" utility. Nostalgia for older models like the HP 97 and HP 9845 is expressed, along with a brief mention of other brands like TI, Casio, and Sharp, though RPN is primarily associated with HP products. Overall, the thread emphasizes the practicality and historical significance of RPN in computational tools.
Nidum
Science Advisor
Messages
2,992
Reaction score
852
This thread follows on from : https://www.physicsforums.com/threa...ot-worthy-of-maths-forum.880724/#post-5534559 .

Anybody ever used Polish notation or reverse Polish notation for computational formulae ? Use of either is supposed to eliminate ambiguity and make the flow of computations logical .

I only ask out of curiosity . The very expensive HP programmable calculator we had at Mtu during the late 1970's had reverse Polish notation input . That is the only real world use I have ever come across .
 
  • Like
Likes Pepper Mint
Physics news on Phys.org
I still have the HP 11C I bought in college in 1982. It still works great, and you got to love RPN.
 
  • Like
Likes Nidum
RPN is a tool of trade of the serious number crunching scientist. I'm sure there would be plenty of apps featuring a RPN calculator for whatever tablet you own. The RPN calculator keypad doesn't need an equals sign nor parentheses, i.e., "(" and ")".

To evaluate 6 × (7 - 2 ÷ 3) + 5 you would typically enter the keystrokes in this order:
6 7 2 3 ÷ - × 5 +

Maybe you can see why this is also known as post-fix notation?

If you have access to linux, you'll find that the utility known as "dc" is a commandline RPN calculator. (It is also of unlimited precision, meaning you can set it to give you an answer to thousands of sig figs.)
 
  • Like
Likes Nidum
You can still find the HP35s, and another model, I don't remember the name now, for financial calculations.
Besides, and for nostalgics, you have the 'SwissMicros': https://www.swissmicros.com/
To my knowledge, there are no other brands of RPN calculators. Well, perhaps in Russia... In Soviet times, there used to be a few models...
 
NTW said:
You can still find the HP35s, and another model, I don't remember the name now, for financial calculations.
Besides, and for nostalgics, you have the 'SwissMicros': https://www.swissmicros.com/
To my knowledge, there are no other brands of RPN calculators. Well, perhaps in Russia... In Soviet times, there used to be a few models...
I think TI calculators used it, too, as far as I remember. And it's useful to know, when it comes to pushdown automatons.
 
I still own an HP 49-G that uses RPN. I never use it anymore, though, since I have Mathematica on my laptop
 
fresh_42 said:
I think TI calculators used it, too, as far as I remember. And it's useful to know, when it comes to pushdown automatons.

Before I bought my first HP11C in 1982, I used TI calculators. They were not RPN. Maybe they changed over the years.
 
NTW said:
You can still find the HP35s, and another model, I don't remember the name now, for financial calculations.
Besides, and for nostalgics, you have the 'SwissMicros': https://www.swissmicros.com/
To my knowledge, there are no other brands of RPN calculators. Well, perhaps in Russia... In Soviet times, there used to be a few models...

That would be the HP 12C, I had one of those too when I was in the MBA program.
 
  • #13
Begin off-topic

Casio and Sharp had basic-programmable calculators.

End off-topic
 
Back
Top