RPN vs ALGEBRA programming



#7

I can see RPN when you have constraints of program size and processor speed. When given a formula you don't understand and none of the constraints apply I can see it is simply easier to slavishly insert it as written.


#8

For the 48/49/50 series, I tend to do simple tasks in RPN, but if I have a really complicated formula, I will use the ' deliminiters.

#9

"When given a formula you don't understand "

This is a problem regardless of the input-action logic paradigm.


#10

Couldn't agree more d:-)


#11

Hello!

Quote:
Couldn't agree more d:-)

I wouln't say that. I don't understand Maxwell's equations or Hilbert transforms (or even Einsteins e=m*c^2 as simple as it may look), but I could easily program them on any computer...

Greetings, Max

#12

Hi, "Sam" --


Quote:
I can see RPN when you have constraints of program size and processor speed. When given a formula you don't understand and none of the constraints apply I can see it is simply easier to slavishly insert it as written.

I'm not quite sure what your "thesis statement" is, but my take on the matter is to use equation-based programming when the formula is simple and straightforward, and use keystroke programming when the formula or calculation is lengthy, intricate, or more difficult to implement.

Keystroke programming allows conditional tests, flags, branching, and debugging by single-step execution. Keystroke programs also run faster than equations.

The calculator models in which the user has a choice between equation-based and keystroke-entry programs are the HP-32SII, HP-33S, and the RPL-based HP-28/48/49/50. RPL programs, however, are completely different in form and lack single-step execution.

Now, about RPN versus AOS keystroke programs: The AOS program may not show each and every intermediate result, and is generally not different in sequence of entry from the algebraic expression. As a program, wouldn't a user rather see

X*(Y+(Z/T))-W

instead of the following?

RCL X
*
(
RCL Y
+
(
RCL Z
/
RCL T
)
)
-
RCL W
=

The keystrokes are almost identical, but the only advnatage of the keystroke program is the availability of intermediate results by single-step execution.

-- KS



Possibly Related Threads...
Thread Author Replies Views Last Post
  [PRIME] RPN: another attempt at returning more than one value to the RPN stack Marcus von Cube, Germany 5 889 11-05-2013, 02:44 AM
Last Post: Marcus von Cube, Germany
  HHC 2013 RPN Programming Challenge - Final Thought Jeff O. 7 920 10-17-2013, 11:02 AM
Last Post: Jeff O.
  HHC / HP Museum Programming Contest for RPN and RPL machines Gene Wright 18 1,768 09-22-2013, 09:39 AM
Last Post: Miguel Toro
  HHC 2012 RPN Programming Contest - 10-Step Way-After-Nashville Solution Jeff O. 32 2,890 10-12-2012, 01:41 AM
Last Post: Paul Dale
  HHC 2012 RPN Programming Challenge Conundrum Jeff O. 15 1,384 10-08-2012, 03:34 PM
Last Post: Gerson W. Barbosa
  HHC 2012 RPN Programming Contest Gene Wright 73 4,064 09-28-2012, 12:43 PM
Last Post: x34
  HHC 2012 programming contests coming soon (RPN and RPL) Gene Wright 9 1,032 09-21-2012, 03:38 PM
Last Post: Paul Dale
  Help with RPN programming hpnut 36 2,818 03-03-2012, 09:31 AM
Last Post: Bill (Smithville, NJ)
  Re: RPN Programming exercise (HP-42S) Gerson W. Barbosa 1 341 02-27-2012, 05:51 PM
Last Post: Marcus von Cube, Germany
  RPN Programming exercise (HP-42S) Gerson W. Barbosa 71 3,849 02-26-2012, 11:48 AM
Last Post: Valentin Albillo

Forum Jump: