|Re: RPN vs ALGEBRA programming|
Message #6 Posted by Karl Schneider on 3 Mar 2007, 1:57 p.m.,
in response to message #1 by E Samuel Levy
Hi, "Sam" --
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
instead of the following?
The keystrokes are almost identical, but the only advnatage of the keystroke program is the availability of intermediate results by single-step execution.