home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / rpc102.zip / HP.DOC next >
Text File  |  1990-11-13  |  4KB  |  92 lines

  1.                      REVERSE POLISH CALCULATOR (v 1.02)
  2.  
  3.      This calculator is a close emulation of the HP21, one of the first hand-
  4. held calculators made (circa 1974).  That's pretty old and it doesn't have
  5. all the bells and whistles that one can get now.  But it's quick and dirty
  6. and gets the job done. If you are not a RPN fan I'm not going to try to
  7. convert you but if you are new to RPN and want to try it this implementation
  8. may help you because all the registers are always visible and are updated
  9. in real time.  This should help you keep track of what is going on.
  10.  
  11.      Basically, one uses this type of calculator doing the following:
  12.  
  13.         Type number, hit enter, type number, do operation, type number,
  14.         do operation,...
  15.  
  16. the result of your last operation is always in X.  If you are working with
  17. a parenthesised equation you start with the inner most parentheses and work
  18. outward.  For example,
  19.  
  20.                           5*(3*(2+4))
  21.  
  22. would go like this
  23.  
  24. 2
  25. <ENTER>
  26. 4
  27. +
  28. 3
  29. *
  30. 5
  31. *           (at this point X contains 90).
  32.  
  33.     This calculator has one extra and at least one fault.  First the extra.
  34. To the right of the stack is a table of constants.  The table is accessed
  35. with the <SPACE> bar.  Each time the <SPACE> bar is pressed another page
  36. of constants is shown.  When you find the constant you want it is selected
  37. with the up or down arrow -- then hit <RETURN>.  The constant will now be
  38. in the X register ready to use.  (This is just like the constant Pi which
  39. is accessed by <ESC>-F2).  A couple of comments about the constant table.
  40. A label with parentheses such as N(A) is meant to indicate a subscript.
  41. N sub A is Avogadro's number.  I'm not going to give a complete list
  42. of what the constants are since if you need them you are undoubtedly
  43. familiar with them to begin with.  However, I must point out that there
  44. does not seem to be a l.c. lambda character in DOS so I have used l instead.
  45. So, for example, l(C) is lambda sub C which is the Compton wavelength of
  46. the electron and l(C,p) is the Compton wavelength of the proton and so on.
  47.  
  48. The fault I find most irritating.  Due to the limitations of Turbo Pascal
  49. (this was written in TP 3.0 and compiled with TP 5.5) reals cannot exceed
  50. 1e+/-37 or so.  Therefore, if an operation results in a number outside this
  51. range a fatal error occurs and you are rudely dumped out of the program.
  52. This is a BAD THING and will be corrected in future releases (if there are
  53. any, depends on interest).
  54.  
  55.      Now for the beggarware pitch.  I actually use this calculator on a
  56. daily basis (when my 15 year old HP21 is somewhere else).  So I know it
  57. is useful and I like it, too.  If you like it and find it useful a $10
  58. contribution to my kids' college education will be greatly appreciated.
  59. Whether you contribute or not my e-mail address is on the main screen so if
  60. you have any questions or gripes feel free.  If there is enough interest
  61. (i.e. dollars) I plan to consider the following improvements:
  62.  
  63.           1)  Fix the 1e+\-37 limitation
  64.  
  65.           2)  Tables of constants of interest to others (I'm a physicist)
  66.               chemistry, math, various fields of engineering, etc
  67.  
  68.           3)  User definable tables of constants
  69.  
  70.           4)  Make it TSR w/hot key -- Though I find, nowdays, most times
  71.                 when I need the calculator I'm in an application that can
  72.                 shell to DOS
  73.  
  74.           5)  Full blown operation manual
  75.  
  76.           6)  Other stuff: Suggestions welcome
  77.  
  78. not much more though as I am opposed to creeping featuritus.
  79.  
  80. Registered users will get complete source code and free upgrades plus that
  81. rewarding feeling of knowing you have done a GOOD THING.
  82.  
  83. Mark North
  84. 1826 Galveston St.
  85. San Diego, CA 92110
  86.  
  87. (619) 553 2800 -- north@manta.nosc.mil
  88.  
  89.  
  90.  
  91.  
  92.