home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / keypad10.zip / KEYPAD.DOC next >
Text File  |  1992-03-31  |  11KB  |  283 lines

  1. KEYPAD10.ZIP DOCUMENTATION
  2.  
  3. INTRODUCTION:
  4.  
  5.         KeyPad is an RPN (Reverse Polish Notation) scientific calculator. Once
  6. the program is run it remains resident in memory and can be re-activated at
  7. (almost) any time. The correct program to use depends on your computers
  8. configuration:
  9.  
  10.             KEYPADA.EXE       no coprocesser installed
  11.             KEYPADB.EXE       coprocesser installed
  12.  
  13.         Rename whichever of these programs is correct for your system to
  14. KEYPAD.EXE and place this new file somewhere on the DOS path. Then type KEYPAD
  15. at the DOS prompt. When you want to use the calculator press the Num Lock key.
  16. Pressing this key again deactivates the calculator. The current state of the
  17. calculator is retained, as long as you don't re-boot, and will reappear when
  18. the program is reactivated.  The calculator screen can be moved on the text
  19. screen using the arrow keys. This screen can also be moved with the Home, PgUp,
  20. PgDn, and End keys.  Additional functions are available by pressing the Ins and
  21. Del keys. If you cannot access these keys with the Num Lock key depressed, use
  22. I,J,K and M for arrow keys and A,S,W and Z for the Home, End, PgUp and PgDn.
  23. Ins and Del are replaced with [ and ] respectively.
  24.  
  25. USING AN RPN CALCULATOR:
  26.  
  27.     This section contains a brief introduction to using an RPN calculator.
  28.  
  29.     In order to perform calculations on two numbers, both numbers must be
  30. entered into the calculator before the operation key is pressed. For instance,
  31. to add 4 and 5 one would type:
  32.  
  33.         4 <enter> 5 +
  34.  
  35.     Pressing the enter key after the 4 saves that number in an internal
  36. register.  The plus after the 5 tells the machine to add the saved number to
  37. the 5 in the display. Similarly one can subtract, multiply and divide:
  38.  
  39.         4 <enter> 5 -       produces 4 - 5
  40.         4 <enter> 5 *       produces 4 * 5
  41.         4 <enter> 5 /       produces 4 / 5
  42.  
  43.     Any calculation that only requires one number always operates on the
  44. display. For instance to take the sine of 90 degrees one would type:
  45.  
  46.         90 SIN
  47.  
  48.     For information on accessing the SIN key, and other functions, see the
  49. section on KeyPad features below.
  50.  
  51.     All calculations are saved on a four number internal stack. Whenever the
  52. <enter> key is pressed the stack is 'pushed', and any function key operates on
  53. the top one or two elements of the stack. In practice this means that one never
  54. needs parentheses, and rarely needs to save intermediate calculations.
  55.  
  56.     Suppose you want to compute (4+5)*(6-2). A possible series of key-strokes,
  57. and a picture of the stack, is shown below:
  58.  
  59.  
  60. Initial Stack: (display is at top)
  61.  
  62.                         0.0     
  63.                         0.0
  64.                         0.0
  65.                         0.0     
  66.             
  67. 4 <enter> 5
  68.                         5.0
  69.                         4.0
  70.                         0.0
  71.                         0.0
  72. +
  73.                         9.0
  74.                         0.0
  75.                         0.0
  76.                         0.0
  77. 6 <enter> 2
  78.  
  79.                         2.0
  80.                         6.0
  81.                         9.0     Notice the 9.0 was 'pushed' when the 6 was 
  82.                         0.0     typed
  83. -
  84.                         4.0
  85.                         9.0
  86.                         0.0
  87.                         0.0
  88. *
  89.                         36.0
  90.                         0.0
  91.                         0.0
  92.                         0.0
  93.  
  94.     Whenever the stack is 'popped' the bottom element is moved into the next
  95. higher position in the stack. For instance if the stack contains
  96.  
  97.                         4.0
  98.                         3.0
  99.                         2.0
  100.                         1.0
  101.  
  102. then typing the * key will produce
  103.  
  104.                         12.0
  105.                          2.0
  106.                          1.0
  107.                          1.0
  108.  
  109.  
  110. KEYPAD FEATURES:
  111.  
  112.     When KeyPad is initially activated one sees the following :
  113.  
  114.                         ╔═══════════════════╗
  115.                         ║╔═════════════════╗║
  116.                         ║║0.0000           ║║
  117.                         ║╚═════════════════╝║
  118.                         ║ ╔═══╦═══╦═══╦═══╗ ║
  119.                         ║ ║OFF║ / ║ * ║ - ║ ║
  120.                         ║ ╠═══╬═══╬═══╬═══╣ ║
  121.                         ║ ║ 7 ║ 8 ║ 9 ║   ║ ║
  122.                         ║ ╠═══╬═══╬═══╣ + ║ ║
  123.                         ║ ║ 4 ║ 5 ║ 6 ║   ║ ║
  124.                         ║ ╠═══╬═══╬═══╬═══╣ ║
  125.                         ║ ║ 1 ║ 2 ║ 3 ║ E ║ ║
  126.                         ║ ╠═══╩═══╬═══╣ N ║ ║
  127.                         ║ ║   0   ║ . ║ T ║ ║
  128.                         ║ ╚═══════╩═══╩═══╝ ║
  129.                         ╚═══════════════════╝
  130.  
  131. This screen  allows one to enter numbers in the stack and to operate on them
  132. with the four basic arithmetic operations. Pressing the Ins (or [) key produces
  133. the screen:
  134.  
  135.                         ╔═══════════════════╗
  136.                         ║╔═════════════════╗║
  137.                         ║║0.0000           ║║
  138.                         ║╚═════════════════╝║
  139.                         ║ ╔═══╦═══╦═══╦═══╗ ║
  140.                         ║ ║OFF║CLX║X|Y║FIX║ ║
  141.                         ║ ╠═══╬═══╬═══╬═══╣ ║
  142.                         ║ ║EEX║CHS║ π ║ D ║ ║
  143.                         ║ ╠═══╬═══╬═══╣ E ║ ║
  144.                         ║ ║ D ║ E ║ F ║ C ║ ║
  145.                         ║ ╠═══╬═══╬═══╬═══╣ ║
  146.                         ║ ║ A ║ B ║ C ║ R ║ ║
  147.                         ║ ╠═══╩═══╬═══╣ A ║ ║
  148.                         ║ ║ ROLL  ║X^2║ D ║ ║
  149.                         ║ ╚═══════╩═══╩═══╝ ║
  150.                         ╚═══════════════════╝
  151.  
  152. The meaning of each of these keys is explained below.
  153.  
  154.     CLX (   /    key) : Clear the display
  155.  
  156.     X|Y (   *    key) : Interchange the top two elements of the stack
  157.  
  158.     FIX (   -    key) : Set the precision. After this key is pressed the
  159.                         display will revert to the original. Type a number 
  160.                         between 0 and 9 to set the number of digits of 
  161.                         precision after the decimal point that will be 
  162.                         displayed. This number does not affect the precision 
  163.                         with which calculations are carried out.
  164.  
  165.     DEC (   +    key) : Set the radix. When this key is typed the base for
  166.                         calculations is changed to 16. The key will then read 
  167.                         HEX. Typing it again reverts to base ten.
  168.  
  169.     RAD (<enter> key) : Set the angle type. When this key is typed the machine
  170.                         assumes all angles are measured in degrees. The key 
  171.                         will then read DEG. Typing it again reverts to radian 
  172.                         measure. This key only affects the operation of the
  173.                         trigonometric functions.
  174.  
  175.     EEX (   7    key) : Enter an exponent. After this key is typed enter a one
  176.                         or two digit exponent. The sign of the exponent may be
  177.                         changed with the CHS key.  When the exponent is entered
  178.                         type the EEX key again.
  179.  
  180.     CHS (   8    key) : Change the sign of the display.
  181.  
  182.     π   (   9    key) : Enter pi (~3.141592654) into the display.
  183.  
  184.     A-F ( 1 - 6 keys) : Enter the hexadecimal digits a through f into the
  185.                         display. These keys only work when the base is set to 
  186.                         sixteen.
  187.  
  188.     ROLL (  0    key) : Roll the stack. The display is taken to the bottom of
  189.                         the stack, and the other elements are popped up one 
  190.                         place.
  191.  
  192.     X^2 (   .   key) : The display is squared.  
  193.  
  194.     When the Del (or ]) key is pressed the screen changes to:
  195.  
  196.                         ╔═══════════════════╗
  197.                         ║╔═════════════════╗║
  198.                         ║║0.0000           ║║
  199.                         ║╚═════════════════╝║
  200.                         ║ ╔═══╦═══╦═══╦═══╗ ║
  201.                         ║ ║OFF║1/X║Y^X║e^X║ ║
  202.                         ║ ╠═══╬═══╬═══╬═══╣ ║
  203.                         ║ ║SIN║COS║TAN║ L ║ ║
  204.                         ║ ╠═══╬═══╬═══╣ N ║ ║
  205.                         ║ ║ASN║ACS║ATN║ X ║ ║
  206.                         ║ ╠═══╬═══╬═══╬═══╣ ║
  207.                         ║ ║STO║RCL║LST║ L ║ ║
  208.                         ║ ╠═══╩═══╬═══╣ O ║ ║
  209.                         ║ ║ 10^X  ║√X ║ G ║ ║
  210.                         ║ ╚═══════╩═══╩═══╝ ║
  211.                         ╚═══════════════════╝
  212.  
  213. The meaning of each of these keys is explained below.
  214.  
  215.     1/X (   /    key) : Compute the reciprocal of the display.
  216.  
  217.     Y^X (   *    key) : Take the second element of the stack to the power shown
  218.                         in the display.
  219.  
  220.     e^X (   -    key) : Raise the constant e (~2.71828) to the power shown in
  221.                         the display.
  222.  
  223.     LNX (   +    key) : Compute the natural logarithm of the display.
  224.  
  225.     LOG (<enter> key) : Compute the logarithm base ten of the display.
  226.  
  227.     SIN (   7    key) : Compute the sine of the display.
  228.  
  229.     COS (   8    key) : Compute the cosine of the display.
  230.  
  231.     TAN (   9    key) : Compute the tangent of the display.
  232.  
  233.     ASN (   4    key) : Compute the arcsine of the display.
  234.  
  235.     ACS (   5    key) : Compute the arccosine of the display.
  236.  
  237.     ATN (   6    key) : Compute the arctangent of the display.  
  238.  
  239.     STO (   1    key) : Store the display. After typing this key type a single
  240.                         decimal digit. The display will be stored in one of ten
  241.                         internal registers, determined by the digit typed.
  242.  
  243.     RCL (   2    key) : Recall. After typing this key type a single decimal
  244.                         digit. The internal register named by that digit will 
  245.                         be recalled to the display. 
  246.  
  247.     LST (   3    key) : Last X. This key restores the value the display had 
  248.                         when the last function key was pressed.
  249.  
  250.     10^X (  0    key) : Raise 10 to the power shown in the display.
  251.  
  252.     √X   (  .    key) : Compute the square root of the display.
  253.  
  254. ERROR MESSAGES:
  255.  
  256.     KeyPad produces one of six error messages. Their meanings are as follows:
  257.  
  258.     Improper Argument : A function key has been pressed with invalid operands
  259.                         on the stack, for instance by trying to compute ln(-1).
  260.  
  261.     Singularity       : Similar to the error above. Log(0) will produce this
  262.                         message.
  263.  
  264.     Overflow          : The computed number is too large or too small.
  265.  
  266.     Underflow         : The number computed has too small a negative
  267.                         exponent. Usually zero can be substituted for the 
  268.                         result.
  269.  
  270.     No Significance   : The number as computed by the machine is meaningless.
  271.                         For instance sin(10e95) will produce this error.
  272.  
  273.     Exception n       : Here n is a one or two digit number. This error
  274.                         should not occur. I would be interested in knowing the
  275.                         circumstances that produced it if it does.
  276.  
  277.     After an error message type any key, other than Shift, Alt or Ctrl, 
  278.     to clear the message from the display.
  279.  
  280. BUGS:
  281.     Error messages can sometimes lose a number from the stack.
  282.  
  283.