Author Topic: EE Pros: Is RPN still relevant?  (Read 27369 times)

0 Members and 1 Guest are viewing this topic.

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: EE Pros: Is RPN still relevant?
« Reply #50 on: March 05, 2017, 11:57:50 pm »
Back about 1979, we had our own Automated Test bench and I had to make and program fixtures to test 600 ohms telephone-type transformers. The computers were HP 9852A desktop caculators - 64K of ram that had to be shared between the Basic program and running the GPIB card, the RS232 card, the printer, the tape drive and the OS. The end result was that a program was typically a few hundred lines maximum, and variables were A to Z.

To handle all the different transformers, I had to write an interpreter that reads the test instructions from a file on the tape for the particular transformer and run it. The only possible way was to write a RPN interpreter because it is just so simple - is the next item in the file a number? If yes, put it on the stack. If it is a letter, it is a command that can pull numbers off the stack. That essentially is the whole interpreter and only takes about 15 minutes to write. In some cases, a command might put numbers back on the stack for the next command to use. No tokenising, no brackets.

So a test might be:

1 2 I
3 4 O
100 R
1000 F
50 V
49 51 M

which means turn on relays 1 and 2 to connect a winding to the source, turn on relays 3 and 4 to connect the output to the dvm, set the dvm to the 100V AC range, set the source to 1KHz at 50V. Then measure (switch on the source and measure output voltage. If it is between 49V and 51V it passes. Using the RPN order made the programming very simple. The thing is it is also simple for the brain. We often add a huge amount of hidden complexity to things necessarily, particularly now when computing speed and memory is no longer an issue.

If I need to use Trig, I often get the numbers first before I even think about which trig function I need. So I calculate the voltage and phase angle first, and once they are on the stack, I will only start to think about "do I need sin() or cos()"?

« Last Edit: March 06, 2017, 12:13:43 am by amspire »
 

Offline djacobow

  • Super Contributor
  • ***
  • Posts: 1151
  • Country: us
  • takin' it apart since the 70's
Re: EE Pros: Is RPN still relevant?
« Reply #51 on: March 06, 2017, 12:05:59 am »
I searched all drawers...  could only find RPN  ;D



34S is the one always on my desk

Is that 34S the WP34S? The one made from a hacked HP30b?

I have one of those and it is awesome. The very idea of it is awesome.

 
The following users thanked this post: frozenfrogz

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #52 on: March 06, 2017, 01:27:44 am »
Mine has sat loved for a while so I decided a couple months ago to pull out and give it some love.  USB to serial and an adapter since I couldn't find the old one


And I can transfer files again.
 

Offline helius

  • Super Contributor
  • ***
  • Posts: 3642
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #53 on: March 06, 2017, 01:41:53 am »
There are user-contributed programs that replace the default stack view for the HP48: they are faster and better looking. Also math packages that make it a much more powerful tool. http://www.hpcalc.org
 

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #54 on: March 06, 2017, 02:12:52 am »
I've been downloading a lot from there lately.  I've seen some of the stack replacements.  I'm running into memory issues now, but can't find a ram card under $100 on ebay or amazon.  I see all the specs for the cards were published, I may have to see if I can design one in kicad.
 

Online xrunner

  • Super Contributor
  • ***
  • Posts: 7517
  • Country: us
  • hp>Agilent>Keysight>???
Re: EE Pros: Is RPN still relevant?
« Reply #55 on: March 06, 2017, 02:37:35 am »
I was browsing Ebay and just for the fun of it searched for the HP 42S (which I still have). They are going for over $200! But I'm not selling mine.  :)
I told my friends I could teach them to be funny, but they all just laughed at me.
 

Offline jakeisprobablyTopic starter

  • Regular Contributor
  • *
  • Posts: 168
  • Country: us
    • Upcycle Electronics
Re: EE Pros: Is RPN still relevant?
« Reply #56 on: March 06, 2017, 06:15:55 am »
I was browsing Ebay and just for the fun of it searched for the HP 42S (which I still have). They are going for over $200!
  ...thus the real reason for starting this thread... I saw how much people were selling RPN calculators for on eBay and figured I was missing something here.... Too many YT cool kids are playing with them. I wanted to know why. This thread is awesome. Thanks ;)
« Last Edit: March 06, 2017, 06:19:15 am by jakeisprobably »
 

Offline kultakala

  • Regular Contributor
  • *
  • Posts: 111
  • Country: de
Re: EE Pros: Is RPN still relevant?
« Reply #57 on: March 06, 2017, 07:40:44 am »

Is that 34S the WP34S? The one made from a hacked HP30b?

I have one of those and it is awesome. The very idea of it is awesome.

Yes, it is the WP34S!
I bought it complete...  and it is really good.
 

Offline CJay

  • Super Contributor
  • ***
  • Posts: 4136
  • Country: gb
Re: EE Pros: Is RPN still relevant?
« Reply #58 on: March 06, 2017, 09:50:53 am »
I'm not an evangelist.  I use RPN and have for over 40 years.  Use it if you think it helps, skip it if you don't.

Absolutely that ^^^^^^^^^^

Use the tools that get the job done properly in the way that works best for you, I wish people would stress it more often instead of evangelising their favoured choice, after all it's exactly what they're doing.

By all means learn RPN but don't feel bad if it doesn't work for you and don't hesitate to try and find a way that's better for you. 
 

Offline Vtile

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: fi
  • Ingineer
Re: EE Pros: Is RPN still relevant?
« Reply #59 on: March 06, 2017, 10:48:10 am »
It worked to me, I got through most of my education with end of the nineties TI graphing calc (closer to 80 than 90 as a model number). Then when I reseated myself to school I decided to go with CAS and everything, got RPN machine. I actually feel like  |O not to had one before as it just fits to my head and makes the boring mindnullifying math a interesting once again.

People love it or hate it. There is only one way to find out which group of people you belong.

PS. HP35s have trig inaccuracy bug, so if you need high precision trigs you need to get a community written trig package for it (google is your friend).
« Last Edit: March 06, 2017, 11:06:36 am by Vtile »
 

Offline MrAl

  • Super Contributor
  • ***
  • Posts: 1438
Re: EE Pros: Is RPN still relevant?
« Reply #60 on: March 06, 2017, 06:50:10 pm »
Hi,

I see that in most of this thread that RPN is being taken as some sort of physical calculator with buttons and the like, but RPN is not just a kind of calculator, it's a way of evaluating expressions and this means it has wider application than in just an RPN calculator.

For example, most Infix calculators probably use RPN internally, because that's the best way to evaluate expressions, for a machine.  In human terms, Infix is more widely used but once entered into a device the chances are that sooner or later it will be converted into an RBN string because that is easier for a machine to understand.  There's much less logic to doing an expression with RPN than with Infix where you could have 100 parentheses waiting around for that last one to be able to finish the calculation.

I've used both low end HP's and high end HP's and low end TI's and high end TI's and i can tell you that for a calculator the least important thing is whether or not it does RPN or not.  The most important thing is what kind of apps you can use with it.  If you work in a certain field and you cant get an app for something you need to calculate, you want want that calculator.  This means that ultimately the best 'calculator' choice is not a calculator at all but a laptop.  If you just want to bang around with it then it doesnt matter as much, but for your main work you'll get what you need.

Back in the old days when i first discovered the TI high end calc's i loved them, and they did all kinds of stuff.  Then i met the advanced HP that did Fourier and Laplace Transforms, then i went back to the TI when it came with even more advanced functions.  They are all on the sidelines now, now that i have software for the PC that i wrote myself and also some that i downloaded, and none of those advanced calculators, even all taken together, can even come close to what i have on the computer these days.
 

Offline David Hess

  • Super Contributor
  • ***
  • Posts: 16615
  • Country: us
  • DavidH
Re: EE Pros: Is RPN still relevant?
« Reply #61 on: March 06, 2017, 07:37:18 pm »
They are all on the sidelines now, now that i have software for the PC that i wrote myself and also some that i downloaded, and none of those advanced calculators, even all taken together, can even come close to what i have on the computer these days.

I use Mathematica but in parallel with my RPN HP50g.  A computer and even PDA lacks the convenience of a dedicated calculator when I am designing on paper.  The calculator is portable, I don't have to worry about the batteries dying, and it has a superior user interface unless something much more complex is being done and not even then sometimes.  Oddly enough it is often faster as well although the 48 MHz ARM based HP50g is slower than the 4 MHz 4-bit HP48g that it replaced.

It looks to me like HP is leaving the calculator business so I suspect RPN as used as a calculator interface will finally succumb.
 

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #62 on: March 06, 2017, 07:47:13 pm »
I was browsing Ebay and just for the fun of it searched for the HP 42S (which I still have). They are going for over $200!
  ...thus the real reason for starting this thread... I saw how much people were selling RPN calculators for on eBay and figured I was missing something here.... Too many YT cool kids are playing with them. I wanted to know why. This thread is awesome. Thanks ;)

Most anything retro si in now.  Do a search for Commodore or Amiga or even Atari and you'll see the same high prices.
 

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #63 on: March 06, 2017, 07:52:31 pm »
They are all on the sidelines now, now that i have software for the PC that i wrote myself and also some that i downloaded, and none of those advanced calculators, even all taken together, can even come close to what i have on the computer these days.

When we all used calculators you couldn't fit a computer in your pocket.  One of my early projects was making a data acquisition board for my 48sx.  I gave up on that project after a while when you were able to buy DMM's, DSO's etc that could communicate with a PC/laptop.

When I learned that forth was postfix I started looking into it, before I wasn't interested as I though it just another language.

Now a days I don't use my hp as much as I would like but the feel of the keyboard is still there.  Its like asking someone why they have a manual transmission.

In reality its probably not relevant much anymore, I still prefer to design my wooddorking  or schematics on paper, never got used to cad either.
« Last Edit: March 06, 2017, 07:55:41 pm by eugenenine »
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #64 on: March 06, 2017, 07:54:53 pm »


Back in the old days when i first discovered the TI high end calc's i loved them, and they did all kinds of stuff.  Then i met the advanced HP that did Fourier and Laplace Transforms, then i went back to the TI when it came with even more advanced functions.  They are all on the sidelines now, now that i have software for the PC that i wrote myself and also some that i downloaded, and none of those advanced calculators, even all taken together, can even come close to what i have on the computer these days.

For the last month, I have been playing with wxMaxima on a PC and it is terrific!  No calculator will ever compare to this CAS (Computer Algebra System) with a 27" screen.  About this, I am an evangelist!  I believe!

Not all that many people actually need a CAS in their everyday lives.  Those who work in tech probably do but they are probably already using such a thing.  Everybody in a college STEM program needs something.  I just use the calculators for grunt number crunching.

Maple and Octave are also highly regarded as CAS programs.  Maple tends to cost money and, although I have downloaded Octave, I haven't started using it.  I'm still learning about wxMaxima.  Matlab needs to be on the list as well.  Mathworks has libraries for everything!


 

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #65 on: March 06, 2017, 07:57:03 pm »

For the last month, I have been playing with wxMaxima on a PC and it is terrific!  No calculator will ever compare to this CAS (Computer Algebra System) with a 27" screen.  About this, I am an evangelist!  I believe!

Not all that many people actually need a CAS in their everyday lives.  Those who work in tech probably do but they are probably already using such a thing.  Everybody in a college STEM program needs something.  I just use the calculators for grunt number crunching.


I grabbed the slackbuilds for this the other day, I just need to find a good tutorial on getting started

 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9890
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #66 on: March 06, 2017, 08:25:11 pm »

For the last month, I have been playing with wxMaxima on a PC and it is terrific!  No calculator will ever compare to this CAS (Computer Algebra System) with a 27" screen.  About this, I am an evangelist!  I believe!

Not all that many people actually need a CAS in their everyday lives.  Those who work in tech probably do but they are probably already using such a thing.  Everybody in a college STEM program needs something.  I just use the calculators for grunt number crunching.


I grabbed the slackbuilds for this the other day, I just need to find a good tutorial on getting started

If you are asking about wxMaxima, there are two great books that have terrific examples specifically related to wxMaxima for Calculus.  It's simple enough to just take the ideas and put them to use in other areas.

https://wxmaximafor.wordpress.com/

The User Manual is online but it doesn't seem terribly approachable.  It is great as a reference, not so much as  a tutorial.

I have attached the code for a "Ball Thrown In Air" physics problem.  The gravitational constant shows clearly that the experiment wasn't done on Earth.  The two graphs are included.  If you want, just retype the code and see how it works out.  I get most of my education by copying.

It is worth noting that the entire problem is contained in lines 2..6.  Everything else is just gilding a lily.
Line 2 defines the gravitational constant
Line 3 defines the initial velocity
Line 4 describes the standard equation for motion: H(t)=V0t+1/2at2
Line 5 takes the derivative of the function in Line 4 to get v(t), the velocity as a function of time.  Note that wxMaxima does the derivative, I didn't have to provide it.
Line 6 finds the time when the ball impacts the ground by looking for the second root (away from 0) for the H(t) equation.  In other words, where H(t) = 0 with t <> 0.

That's it!


« Last Edit: March 06, 2017, 08:37:24 pm by rstofer »
 

Offline frozenfrogz

  • Frequent Contributor
  • **
  • Posts: 936
  • Country: de
  • Having fun with Arduino and Raspberry Pi
Re: EE Pros: Is RPN still relevant?
« Reply #67 on: March 06, 2017, 09:57:53 pm »
OT: I love how these threads always have a tendency to end up deep in nerd territory  :-+

Please go on!
He’s like a trained ape. Without the training.
 

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: EE Pros: Is RPN still relevant?
« Reply #68 on: March 06, 2017, 10:35:25 pm »
I used to get magazines from the library with ads for hp calculators, it was like playboys for nerds.
I graduated high school and then 48sx was released and I worked and saved months for it and finally saved up the $300 and bought it from a store called service merchandise.  It was under glass like in a jewelry store so I made my purchase then went to the waiting room where the product you bought came out on a belt like luggage in the airport.  I almost cried when that little box finally came down the belt for me.

Holy smokes, that might've been where I bought my 28S back in the day. Been using RPN ever since, even for simple calculations. As someone else posted, Free42 works a treat. Or if you want the HP look, Droid48.

I haven't used my 28S in ages. Perhaps I'll hunt down some N-size NiMH rechargeable batteries (it uses three cells).
« Last Edit: March 06, 2017, 10:44:05 pm by bitseeker »
TEA is the way. | TEA Time channel
 

Offline Vtile

  • Super Contributor
  • ***
  • Posts: 1144
  • Country: fi
  • Ingineer
Re: EE Pros: Is RPN still relevant?
« Reply #69 on: March 06, 2017, 10:43:12 pm »
I was browsing Ebay and just for the fun of it searched for the HP 42S (which I still have). They are going for over $200!
  ...thus the real reason for starting this thread... I saw how much people were selling RPN calculators for on eBay and figured I was missing something here.... Too many YT cool kids are playing with them. I wanted to know why. This thread is awesome. Thanks ;)

Most anything retro si in now.  Do a search for Commodore or Amiga or even Atari and you'll see the same high prices.
Vintage Casios run for $1 a piece.  ::) >:D
 

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: EE Pros: Is RPN still relevant?
« Reply #70 on: March 06, 2017, 10:46:04 pm »
I was browsing Ebay and just for the fun of it searched for the HP 42S (which I still have). They are going for over $200! But I'm not selling mine.  :)

I'm not selling my HP calculator either. That would be anti-TEA and my other HP gear wouldn't be too happy about it. :-DMM
TEA is the way. | TEA Time channel
 

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #71 on: March 06, 2017, 10:52:31 pm »

For the last month, I have been playing with wxMaxima on a PC and it is terrific!  No calculator will ever compare to this CAS (Computer Algebra System) with a 27" screen.  About this, I am an evangelist!  I believe!

Not all that many people actually need a CAS in their everyday lives.  Those who work in tech probably do but they are probably already using such a thing.  Everybody in a college STEM program needs something.  I just use the calculators for grunt number crunching.


I grabbed the slackbuilds for this the other day, I just need to find a good tutorial on getting started

If you are asking about wxMaxima, there are two great books that have terrific examples specifically related to wxMaxima for Calculus.  It's simple enough to just take the ideas and put them to use in other areas.

https://wxmaximafor.wordpress.com/

The User Manual is online but it doesn't seem terribly approachable.  It is great as a reference, not so much as  a tutorial.

I have attached the code for a "Ball Thrown In Air" physics problem.  The gravitational constant shows clearly that the experiment wasn't done on Earth.  The two graphs are included.  If you want, just retype the code and see how it works out.  I get most of my education by copying.

It is worth noting that the entire problem is contained in lines 2..6.  Everything else is just gilding a lily.
Line 2 defines the gravitational constant
Line 3 defines the initial velocity
Line 4 describes the standard equation for motion: H(t)=V0t+1/2at2
Line 5 takes the derivative of the function in Line 4 to get v(t), the velocity as a function of time.  Note that wxMaxima does the derivative, I didn't have to provide it.
Line 6 finds the time when the ball impacts the ground by looking for the second root (away from 0) for the H(t) equation.  In other words, where H(t) = 0 with t <> 0.

That's it!

Yes, wxMaxima

But now I need to re-learn calc and / or physics, the old hdd is getting quite fragmented.
 

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #72 on: March 06, 2017, 10:59:59 pm »
I used to get magazines from the library with ads for hp calculators, it was like playboys for nerds.
I graduated high school and then 48sx was released and I worked and saved months for it and finally saved up the $300 and bought it from a store called service merchandise.  It was under glass like in a jewelry store so I made my purchase then went to the waiting room where the product you bought came out on a belt like luggage in the airport.  I almost cried when that little box finally came down the belt for me.

Holy smokes, that might've been where I bought my 28S back in the day. Been using RPN ever since, even for simple calculations. As someone else posted, Free42 works a treat. Or if you want the HP look, Droid48.

I haven't used my 28S in ages. Perhaps I'll hunt down some N-size NiMH rechargeable batteries (it uses three cells).

I don't know how big of a chain they were.  I bought mine in Columbus Ohio, it was on Hamilton Road.
 

Offline bitseeker

  • Super Contributor
  • ***
  • Posts: 9057
  • Country: us
  • Lots of engineer-tweakable parts inside!
Re: EE Pros: Is RPN still relevant?
« Reply #73 on: March 07, 2017, 01:04:57 am »
Service Merchandise seemed to be everywhere. I remember many fun times watching for my purchase to rumble down the conveyor.

NiMH N-type (aka LR-1) batteries seem to be hard to find in the US. So far, I'm only locating sources in the UK.
TEA is the way. | TEA Time channel
 

Offline eugenenine

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: EE Pros: Is RPN still relevant?
« Reply #74 on: March 07, 2017, 01:11:00 am »
N size NIMH?  Amazon, battery junction, etc all have them.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf