home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / UT / UT015.ZIP / MANUAL < prev    next >
Text File  |  1988-07-21  |  67KB  |  3,233 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.          P C / C A L C U L A T O R
  12.  
  13.  
  14.              Reference Manual
  15.  
  16.               Second Edition
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.               September 1984
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.            (c) Copyright - 1984
  33.         Micro Business Applications
  34.            1133 Guerrero Street
  35.           San Francisco, CA 94110
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.                                       Page 1
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.                PC/CALCULATOR                
  69.  
  70.  
  71.  
  72.                _________________  ERRORS                                  10
  73.      ARITHMETIC EXAMPLE                      10
  74.      AUXILIARY MEMORIES                      11
  75.      CLEAR                                   11
  76.      HELP                                    11
  77.      EXITING THE PROGRAM                     12
  78.      DISPLAY AND ENTRY MODES                 12
  79.      THE UN-DO KEY                           13
  80.      TAPE TRACE AND PRINTING                 13       
  81.      RADIANS/DEGREES MODE                    13       
  82.      MOUSE MODE                              14       
  83. III. FUNCTION KEY MODES                 15
  84.      CALC FUNCTION KEY MODE                  15
  85.      CALC2 FUNCTION KEY MODE                 17
  86.           Markup Calculations                     17
  87.           Markup Calculation Examples             17
  88.           Percent Calculations                    18
  89.           Delta Percent Example                   18
  90.           Sum a List of Numbers Example           19
  91.           Combinatorics                           20
  92.      TRIG FUNCTION KEY MODE                  20
  93.      STATS FUNCTION KEY MODE                 22
  94.           Entering Statistical Data               22
  95.           Calculating Statistical Values          23
  96.           Calculating x and y Values              24
  97.  
  98.  
  99.  
  100. Page 2                                      
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.                PC/CALCULATOR                
  122.  
  123.  
  124.  
  125.      PROG FUNCTION KEY MODE                  24
  126.      FIN FUNCTION KEY MODE (Financial)       25
  127.           Compound Interest Problems              27
  128.           Annuity Problems                        28
  129.      FINANCIAL EXAMPLES                      29
  130.      CONV FUNCTION KEY MODE                  33
  131. IV.  BACKGROUND CALCULATOR              34
  132.      OVERVIEW                                34
  133.      INSTALLING THE BACKGROUND CALCULATOR    34
  134.      INVOKING THE BACKGROUND CALCULATOR      35
  135.      RUNNING THE BACKGROUND CALCULATOR       36
  136.      EXITING THE BACKGROUND CALCULATOR       36
  137. V.   PROGRAMMING FEATURES               37
  138.      PROGRAM FILES                           37
  139. SPECIAL PROGRAMMING KEYS                38
  140.      THE L KEY                               38
  141.      THE K KEY                               38
  142.      THE J KEY                               39
  143.      THE Z KEY                               39
  144.      PROGRAM INVOCATION FROM DOS             39
  145.      PROGRAM COMMANDS                        40
  146. VI.  APPENDICES                         45
  147.      APPENDIX A - KEY SUMMARY                46
  148.      APPENDIX B - ERROR MESSAGES             47
  149.      APPENDIX C - FORMULAS                   51
  150.      INDEX                                   53
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.                                       Page 3
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.                PC/CALCULATOR                
  188.  
  189.  
  190.  
  191.      _______________     I. INTRODUCTION
  192.  
  193.      ____________     REQUIREMENTS
  194.  
  195.  
  196.          IBM PC, XT, Jr., or compatible
  197.          1 Floppy Drive
  198.          128KB RAM
  199.          DOS 1.0, 1.1, or 2.0
  200.  
  201.  
  202.      PC/CALCULATOR is a software program 
  203.      that will turn your IBM PC into a 
  204.      programmable multi-function RPN 
  205.      (Reverse Polish Notation) calculator. 
  206.      It features 16 visible memories, 7 
  207.      function key modes, and 14 number 
  208.      display formats. Included is a back- 
  209.      ground version of the calculator. 
  210.      Once loaded into your PC, it can be 
  211.      easily accessed from within another 
  212.      program. 
  213.  
  214.  
  215.      _________     COPYRIGHT
  216.  
  217.  
  218.      PC/CALCULATOR may be used on only one 
  219.      computer at a time. The distribution 
  220.      diskette may be duplicated for backup 
  221.      purposes only. Distributing copies of 
  222.      the programs or documentation is il- 
  223.      legal. 
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232. Page 4                                      
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.                PC/CALCULATOR                
  254.  
  255.  
  256.  
  257.      _______________     GETTING STARTED
  258.  
  259.  
  260.      Before you begin using PC/CALCULATOR, 
  261.      please take the time to duplicate 
  262.      your distribution diskette either tou can exit the cal- 
  263.      culator at any time by pressing 'Q'. 
  264.      If that doesn't work, press 'J' and 
  265.      then 'Q'. The latter will work even 
  266.      if you are using the programmable 
  267.      mode of the calculator. You may also 
  268.      press 'H' to access a help screen. 
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.                                       Page 5
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.                PC/CALCULATOR                
  302.  
  303.  
  304.  
  305.      ________________________     EXECUTING THE CALCULATOR
  306.  
  307.  
  308.      To start the calculator, enter the 
  309.      command 
  310.  
  311.          CALC    [P=PRINT-FILE]
  312.              [F=FOREGROUND-COLOR]
  313.              [B=BACKGROUND-COLOR]
  314.              [K=PROGRAM-FILE-TO-RUN]
  315.              [L=PROGRAM-FILE-TO-WRITE] [+U]
  316.  
  317.      The items in brackets are optional. 
  318.      The P=PRINT-FILE-OPTION is used to 
  319.      redirect output to either a file or a 
  320.      device. Some calculator functions 
  321.      create output which by default goes 
  322.      to the printer 'PRN:'. To send this 
  323.      output to either a serial printer or 
  324.      a file, enter 
  325.  
  326.          CALC P=COM1: 
  327.          or 
  328.          CALC P=OUTPUT.FLE 
  329.  
  330.      The F=FOREGROUND-COLOR and 
  331.      B=BACKGROUND-COLOR are used to modify 
  332.      the displayed colors on a color 
  333.      monitor. The color options are 
  334.  
  335.  
  336.      0 - black 3 - cyan    6 - brown
  337.      1 - blue  4 - red     7 - white
  338.      2 - green 5 - magenta           
  339.  
  340.      These options are not useful with a 
  341.      monochrome monitor. Colors other than 
  342.      black for the background are not 
  343.  
  344.  
  345.  
  346. Page 6                                      
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.                PC/CALCULATOR                
  368.  
  369.  
  370.  
  371.      recommended. The default colors are 
  372.      black background and white 
  373.      foreground. 
  374.  
  375.      The K= and L= options are described 
  376.      in the programming section. 
  377.  
  378.      The +U option is a mnemonic for upper 
  379.      case switch. The ten function keys 
  380.      and their shifts allow for 20 func- 
  381.      tions keys in each of the 7 function 
  382.      key modes. The name of the function 
  383.      is displayed on the screen with the 
  384.      function on top corresponding to the 
  385.      _________ function key. On most      unshifted                       
  386.      typewriters, the upper key cor- 
  387.      responds to the shift key. For those 
  388.      who wish to switch the use of the 
  389.      shift and unshift functions keys, use 
  390.      the +U option. 
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.                                       Page 7
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.                PC/CALCULATOR                
  434.  
  435.  
  436.  
  437. ________________________II. USING THE CALCULATOR
  438.  
  439.  
  440. _______________________REVERSE POLISH NOTATION
  441.  
  442. Using an RPN calculator will take a little 
  443. practice, but ultimately you may find it 
  444. easier to use than an algebraic cal- 
  445. culator. All RPN calculators use a number 
  446. stack. This is similar to a tray stack at 
  447. a cafeteria, which drops down when a tray 
  448. is placed on top, and which pops up when a 
  449. tray is removed. The PC/CALCULATOR stack 
  450. appears on the screen upside down, with 
  451. the numbers pushing each other up and pop- 
  452. ping them down. If a number is pushed off 
  453. the top of the stack, it disappears. Once 
  454. numbers are pushed onto the stack, they 
  455. may be manipulated by the calculator. Some 
  456. of the function keys as well as the four 
  457. standard calculator functions -- add, sub- 
  458. tract, multiply, and divide -- use the bot- 
  459. tom two numbers in the stack. Each of 
  460. these functions returns its result on the 
  461. bottom of the stack. Many of the function 
  462. keys work only on the bottom number in the 
  463. stack and leave the result on the bottom. 
  464. The reason for the 'Reverse' is that, un- 
  465. like an algebraic calculator where you 
  466. might enter 
  467.  
  468. NUMBER + NUMBER =, 
  469.  
  470. with an RPN calculator you enter 
  471.  
  472. NUMBER NUMBER + 
  473.  
  474.  
  475.  
  476.  
  477.  
  478. Page 8                                      
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497.  
  498.  
  499.                PC/CALCULATOR                
  500.  
  501.  
  502.  
  503. ________________ENTERING NUMBERS
  504.  
  505. All numbers entered into the calculator 
  506. first appear on the line below the stackated 
  507. with the 'N' key. If anything is entered 
  508. on the 'E' line and any function key is 
  509. pressed, the entered number will 
  510. automatically be pushed into the stack 
  511. before the function is executed. The range 
  512. of numbers that PC/CALCULATOR can handle 
  513. is approximately 1.E-308 to 1.E+308. To en- 
  514. ter a positive exponent, press the 'E' 
  515. key. For a negative exponent, use the 'F' 
  516. key. 
  517.  
  518. _________________________FOUR ARITHMETIC FUNCTIONS
  519.  
  520.     Add      - Both '+' keys 
  521.     Subtract - Both '-' keys
  522.     Multiply - Both '*' keys and the 'X' key
  523.     Divide   - Either the '\' or '/' key
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.                                       Page 9
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.                PC/CALCULATOR                
  552.  
  553.  
  554.  
  555. Pressing one of these keys causes an arith- 
  556. metic operation on the two numbers on the 
  557. bottom of the stack. The result replaces 
  558. the two operands. 
  559.  
  560. __________________STACK MANIPULATION
  561.  
  562. Function key 1 always switches the bottom 
  563. two numbers on the stack. Function key 2 
  564. pushes a duplicate of the bottom number on- 
  565. to the stack. Shift F1 pops the bottom num- 
  566. ber off the stack and puts it back on top. 
  567. This is called a roll operation. Shift F2 
  568. always pops the bottom number off the 
  569. stack and discards it. 
  570.  
  571. ______ERRORS
  572.  
  573. If you make a mistake such as pressing an 
  574. illegal key or dividing by zero, the cal- 
  575. culator will sound a beep, and print an er- 
  576. ror message across the bottom of the 
  577. screen. A list of all error messages ap- 
  578. pears in the appendices. 
  579.  
  580. __________________ARITHMETIC EXAMPLE
  581.  
  582. How do you calculate the following expression?
  583.  
  584.          (5.123 + 2.127) / (6.75 - 4.23)
  585.  
  586. First enter 5.123 and press return.
  587. Then enter 2.127 and press '+'.
  588.     The result should be 7.25.
  589. Enter 6.75 and press return.
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596. Page 10                                     
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617.                PC/CALCULATOR                
  618.  
  619.  
  620.  
  621. Enter 4.23 and press '-'.
  622.     The result should be 2.52.
  623. Press '/'.
  624.     The result should be 2.8769.
  625.  
  626. __________________AUXILIARY MEMORIES
  627.  
  628. The ten auxiliary memories that appear
  629. above the stack may be used with the 'S'
  630. and 'R' keys.  To store the number
  631. on the bottom of the stack in an
  632. auxiliary memory, press 'S' followed by
  633. a number 0-9.  This will not affect
  634. the stack.  To retrieve one of the
  635. auxiliary memories, press 'R' followed 
  636. by a number 0-9.  This will 
  637. push the number in that memory into
  638. the stack.  The memory will not 
  639. be affected.
  640.  
  641. _____CLEAR
  642.  
  643. To clear the stack, the auxiliary 
  644. memories, the tape display, or all three, 
  645. press the 'C' key followed by a 'S' for 
  646. stack, 'M' for memories, 'T' for tape, or 
  647. 'C' for all three. 
  648.  
  649. ____HELP
  650.  
  651. At any time that you need help, press the 
  652. 'H' key, and a display that is customized 
  653. for your current function key mode will be 
  654. displayed. To continue, press the return 
  655. key. 
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.                                      Page 11
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.                PC/CALCULATOR                
  684.  
  685.  
  686.  
  687. ___________________EXITING THE PROGRAM
  688.  
  689. When finished with PC/CALCULATOR, you may 
  690. exit by either pressing the 'Q' key or the 
  691. escape (Esc) key. Pressing the escape key 
  692. will save the current state of the cal- 
  693. culator in a file called CALC.SAV, which 
  694. will be read when the calculator is run 
  695. again. Pressing the 'Q' key will exit the 
  696. program immediately. 
  697.  
  698. _______________________DISPLAY AND ENTRY MODES
  699.  
  700. By pressing the 'D' key, you may change 
  701. the display format of the stack and aux- 
  702. iliary memories. The 'D' key is pressed 
  703. followed by one of these keys. 
  704.  
  705.     D or F - Floating decimal
  706.     0 to 9 - Fixed point decimal
  707.     H      - Hexidecimal
  708.     O      - Octal
  709.     B      - Binary
  710.  
  711. Full precision is kept for all display 
  712. modes. Hex, octal, and binary modes will 
  713. display *'s when out of range. When in a 
  714. nondecimal mode, the data entry from the 
  715. keyboard is also modified. To enter the 
  716. hexidecimal values 'A' through 'F', press 
  717. the alt key followed by the appropriate 
  718. letter key. In octal modthe 'U' key at any time will have 
  719. the effect of removing the action of the 
  720. last key entered. This does not include un- 
  721. doing an un-do. 
  722.  
  723. _______________________TAPE TRACE AND PRINTING
  724.  
  725. The 'T' and 'Y' keys toggle a tape trace. 
  726. The 'T' key will cause a tape that traces 
  727. the calculator action to be written to the 
  728. print file. This file is set on invocation 
  729. of CALC with the 'P=' option. The default 
  730. for this file is the printer. 
  731.  
  732. The 'Y' key causes the tape trace to be 
  733. printed on the right-hand side of the 
  734. screen. This key will not work when using 
  735. the mouse mode. 
  736.  
  737. At any time, you may press the 'P' key to 
  738. print out the current values of the stack 
  739. and auxiliary memories to the print file. 
  740.  
  741. ____________________RADIANS/DEGREES MODE
  742.  
  743. The regular trigonometric functions take 
  744. input either in radians or degrees. The 
  745. arc trig functions leave output in either 
  746. radians or degrees. The current 
  747.  
  748.  
  749.  
  750.                                      Page 13
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.                PC/CALCULATOR                
  772.  
  773.  
  774.  
  775. radians/degrees mode is listed under the 
  776. 'E' line and may be toggled with the 
  777. Ctrl-Tab key. 
  778.  
  779. __________MOUSE MODE
  780.  
  781. If you use a mouse whose movement 
  782. simulates cursor control keys and whose 
  783. button simulates a return key, then you 
  784. can use the mouse mode of the calculator. 
  785. To toggle the mouse mode, press the 'M' 
  786. key. Use the mouse to move the block cur- 
  787. sor to point to a part of the screen. 
  788.  
  789. When in mouse mode, you can enter data 
  790. with the keypad on the right side of the 
  791. screen. Also, the auxiliary memories can 
  792. be used as an alternate source of the 
  793. digits 0-9. The hexidecimal digits are 
  794. available in the lower right-hand corner. 
  795. The function keys on the left will work, 
  796. but be careful to point at either the top 
  797. or bottom function of a key. Pointing at 
  798. the middle line will do nothing. The func- 
  799. tions on the top line are enabled for 
  800. Store, Restore, Help, and the four arith- 
  801. metic functions. 
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816. Page 14                                     
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.                PC/CALCULATOR                
  838.  
  839.  
  840.  
  841. _______________________III. FUNCTION KEY MODES
  842.  
  843.  
  844. There are seven function key modes which 
  845. are described below. They are all 
  846. reachable by pressing the tab key. You can 
  847. also reach a mode directly by pressing the 
  848. 'V' key and a number from 1 to 7. Each 
  849. function key mode has its own display mode 
  850. which can be changed with the 'D' key. The 
  851. current function key mode is listed below 
  852. the E line. 
  853.  
  854.  
  855.   CALC    - General calculation mode; includes 
  856.           logs and exponentiation 
  857.   CALC2    - Combinatorics and markup func- 
  858.           tions 
  859.   TRIG    - All trigonometric and hyperbolic 
  860.           functions and their inverses 
  861.   STATS    - Mean, standard deviation, least 
  862.           squares, linear plotting, and 
  863.           correlation coefficient 
  864.   PROG    - Programmer functions 
  865.   FIN    - Financial functions, including com- 
  866.           pound interest and annuity 
  867.           problems 
  868.   CONV    - Conversion from metric to English 
  869.           units 
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.                                      Page 15
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.                PC/CALCULATOR                
  904.  
  905.  
  906.  
  907. ______________________ CALC FUNCTION KEY MODE 
  908.  
  909. The function keys in CALC mode all work on 
  910. a single value in the (X) register and 
  911. return a value to the (X) register, except 
  912. for function keys 9 and 10 and their 
  913. shifts. Function key 10 and its shift use 
  914. the (X) and (Y) register and return a 
  915. value in (X). Function key 9 and its shift 
  916. push constants into the (X) register. The 
  917. functions are as follows: 
  918.  
  919.      F1     - Swap (X) and (Y)   
  920.      SH F1  - Roll (X) to top    
  921.      F2     - Reciprocal of (X)    
  922.      SH F2  - Round (X) to integer 
  923.               or fixed accuracy
  924.      F3     - Duplicate (X)       
  925.      SH F3  - Drop (X)            
  926.      F4     - Natural log of (X)  
  927.      SH F4  - Euler's constant     
  928.               raised to (              
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.                PC/CALCULATOR                
  950.  
  951.  
  952.  
  953. _______________________CALC2 FUNCTION KEY MODE
  954.  
  955. The function keys in CALC2 mode have 
  956. miscellaneous functions. Keys F5, F7, F9, 
  957. and their shifts are for markup cal- 
  958. culations. Key F2 and its shift are for 
  959. percent calculations. Key F4 and its shift 
  960. are for adding and subtracting numbers 
  961. from auxiliary memory 0. Key F6 and its 
  962. shift and key F8 are for combinatoric 
  963. problems. 
  964.  
  965. To do a markup calculation, you need to 
  966. know two of the three variables: cost, 
  967. selling price, and markup percent. Enter 
  968. the two variables by entering a number fol- 
  969. lowed by the appropriate function key: F5, 
  970. F7, or F9. These values are stored respec- 
  971. tively in memories 6, 7, or 8. 
  972.  
  973. ___________________Markup Calculations
  974.  
  975.      F5  -  Cost              Memory 6
  976.      F7  -  Selling price     Memory 7 
  977.      F9  -  Markup percent    Memory 8
  978.  
  979. To calculate the unknown variable, press 
  980. the shifted function key. 
  981.  
  982. ___________________________ Markup Calculation Examples 
  983.  
  984. Find the selling price of an item that 
  985. costs $15.95 with a markup of 20%. 
  986.  
  987.    KEY(S)        EXPLANATION
  988. 1. D
  989. 2. 2             Set display mode fixed 2
  990. 3. 15.95
  991.  
  992.  
  993.  
  994.                                      Page 17
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.                PC/CALCULATOR                
  1016.  
  1017.  
  1018.  
  1019. 4. F5 (COST)     Set cost
  1020. 5. 20
  1021. 6. F9 (MARKUP %) Set the markup percent
  1022. 7. Shift F7      Calculate the sell price
  1023. Answer in (X)    19.94
  1024.  
  1025. Find the markup of an item that costs 
  1026. $45.45 and retails for $99.95. 
  1027.  
  1028. 1. D
  1029. 2. 0             Set display mode fixed 0
  1030. 3. 45.45
  1031. 4. F5 (COST)     Set cost
  1032. 5. 99.95
  1033. 6. F7 (SELL)     Set the selling price
  1034. 7. Shift F9      Calculate the markup %
  1035. Answer in (X)    % 55
  1036.  
  1037. ____________________Percent Calculations
  1038.  
  1039. To enter a percent, first enter the num- 
  1040. ber, then press F2, the percent key. This 
  1041. key divides the (X) register by 100. 
  1042.  
  1043. To find a percent change, enter the two 
  1044. numbers into the stack registers (X) and 
  1045. (Y) and press shift F2, the delta percent 
  1046. key. 
  1047.  
  1048. _____________________ Delta Percent Example 
  1049.  
  1050. Sales of a product increase from 15,000 
  1051. units to 24,000 units in one period. What 
  1052. is the percent change? 
  1053.  
  1054. 1. 24000
  1055. 2. ENTER        New value 
  1056. 3. 24000        Old value               
  1057.  
  1058.  
  1059.  
  1060. Page 18                                     
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.                PC/CALCULATOR                
  1082.  
  1083.  
  1084.  
  1085. 4. Shift F2     (Delta percent)
  1086. Answer in (X)   60
  1087.  
  1088. _____________________________Sum a List of Numbers Example
  1089.  
  1090. To sum up your check register, do the following:
  1091.  
  1092. 1. D            Change display
  1093. 2. 2            To two fixed decimals
  1094. 3. C
  1095. 4. C            Clear all registers
  1096. 5. 94.56        Item 1
  1097. 6. F4           Add it to memory 0
  1098. 7. 14.00        Item 2
  1099. 8. F4           Add it to memory 0
  1100. 9. 32.99        Item 3
  1101. 10. F4          Add it to memory 0
  1102. 11. R           Restore
  1103. 12. 0           From memory 0
  1104. Answer in (X)   141.55  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.                                      Page 19
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.                PC/CALCULATOR                
  1148.  
  1149.  
  1150.  
  1151. _____________Combinatorics
  1152.  
  1153. To calculate a factorial, enter the number 
  1154. and press F6 (!). The result will be in 
  1155. the (X) register. 
  1156.  
  1157. To find Px:y or the number of permutations 
  1158. of x items taken y at a time, enter x and 
  1159. y into the stack registers (X) and (Y) and 
  1160. press shift F6. The answer will be in (X). 
  1161.  
  1162. To find Cx:y or the number of combinations 
  1163. of x items taken y at a time, enter x and 
  1164. y into the stack registers (X) and (Y) and 
  1165. press shift F6. The answer will be in (X). 
  1166.  
  1167. Note that the combinatoric functions are 
  1168. limited in accuracy for large numbers. 
  1169.  
  1170.  
  1171.  
  1172.  
  1173.  
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192. Page 20                                     
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.  
  1211.  
  1212.  
  1213.                PC/CALCULATOR                
  1214.  
  1215.  
  1216.  
  1217. ______________________ TRIG FUNCTION KEY MODE 
  1218.  
  1219. All the functionF5  - Hyperbolic sine
  1220.      F6     - Inverse tan
  1221.      SH F6  - Inverse hyperbolic tan
  1222.      F7     - Cosine
  1223.      SH F7  - Hyperbolic cosine
  1224.      F8     - Inverse tan of (Y)/(X)
  1225.      SH F8  - No function
  1226.      F9     - Tan
  1227.      SH F9  - Hyperbolic tan
  1228.      F10    - Pi constant
  1229.      SH F10 - Euler's constant
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.                                      Page 21
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.                PC/CALCULATOR                
  1263.  
  1264.  
  1265.  
  1266. _______________________STATS FUNCTION KEY MODE
  1267.  
  1268. Stats mode allows you to enter either mul- 
  1269. tiple values or multiple ordered pairs. 
  1270. Once entered, there are function keys for 
  1271. calculating the variance, standard 
  1272. deviation, and mean. When entering ordered 
  1273. pairs, there are functions keys for cal- 
  1274. culating least squares determination of 
  1275. slope, y intercept, and correlation coef- 
  1276. ficient. Values can also be projected 
  1277. using either new x or y coordinates. Using 
  1278. the trend sum key, data may be entered 
  1279. with the x value automatically increment- 
  1280. ed. 
  1281.  
  1282. _________________________ Entering Statistical Data 
  1283.  
  1284. Statistical data may be entered in either 
  1285. x, y pairs or x values alone. The usual 
  1286. way to enter data is to enter each x, y 
  1287. pair into the bottom of the stack and then 
  1288. press the statistical summation key, F2. 
  1289. Values may be removed by following the 
  1290. same procedure but by pressing the shift 
  1291. F2 key instead. 
  1292.  
  1293. When performing trend analysis, start by 
  1294. putting the first x value in the (Y) 
  1295. register and the first y value in the (X) 
  1296. register. Pressing shift F10 will sum the 
  1297. values and leave an incremented x value on 
  1298. the bottom of the stack. Thereafter, you 
  1299. only need enter a y value and press shift 
  1300. F10 to enter more data. 
  1301.  
  1302. PC/CALCULATOR keeps intermediate values in 
  1303. memory registers 3 - 8. These may not be 
  1304.  
  1305.  
  1306.  
  1307. Page 22                                     
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.                PC/CALCULATOR                
  1329.  
  1330.  
  1331.  
  1332. used while doing statistical calculations 
  1333. without corrupting the results. The values 
  1334. kept are: 
  1335.  
  1336.         Memory 3 - Number of entries
  1337.         Memory 4 - Sum of x values 
  1338.         Memory 5 - Sum of y values 
  1339.         Memory 6 - Sum of x squared
  1340.         Memory 7 - Sum of y squared
  1341.         Memory 8 - Sum of x * y    
  1342.  
  1343. ______________________________Calculating Statistical Values
  1344.  
  1345. Once your data is entered, you can im- 
  1346. mediately calculate some important 
  1347. statistical results by pressing the fol- 
  1348. lowing function keys. All results are 
  1349. returned in the (X) register. 
  1350.  
  1351.      F5       - Variance of x values
  1352.                 with weight n-1
  1353.      Shift F5 - Variance of x values
  1354.                 with weight n
  1355.      F7       - Standard deviation of x's
  1356.                 with weight n-1
  1357.      Shift F7 - Standard deviation of x's
  1358.                 with weight n
  1359.      F8       - Standard deviation of y's
  1360.                 with weight n-1
  1361.      Shift F8 - Standard deviation of y's
  1362.                 with weight n
  1363.      F9       - Mean of x values
  1364.      Shift F9 - Mean of y values
  1365.      F4       - Least squares slope
  1366.                 of x,y line
  1367.      Shift F4 - y intercept of least
  1368.                 squares line
  1369.      F10      - Correlation coefficient
  1370.  
  1371.  
  1372.  
  1373.                                      Page 23
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394.                PC/CALCULATOR                
  1395.  
  1396.  
  1397.  
  1398. __________________________Calculating x and y Values
  1399.  
  1400. To find a new y value for a given x value, 
  1401. enter the x value in the (X) register and 
  1402. press F6. The new y value will be in the 
  1403. (X) register. 
  1404.  
  1405. To find a new x value for a given y value, 
  1406. enter the y value in the (X) register and 
  1407. press shift F6. The new y value will be in 
  1408. the (X) register. 
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421.  
  1422.  
  1423.  
  1424.  
  1425.  
  1426.  
  1427.  
  1428.  
  1429.  
  1430.  
  1431.  
  1432.  
  1433.  
  1434.  
  1435.  
  1436.  
  1437.  
  1438.  
  1439. Page 24                                     
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458.  
  1459.  
  1460.                PC/CALCULATOR                
  1461.  
  1462.  
  1463.  
  1464. ______________________ PROG FUNCTION KEY MODE 
  1465.  
  1466. All the functions available in PROG mode 
  1467. work on either the (X) and (Y) register or - Shift (X) 1 bit left          
  1468.      F5     - Bitwise AND of (X) and (Y)
  1469.      F6     - Shift (X) (Y) bits right                         
  1470.      F7     - Bitwise OR of (X) and (Y)             
  1471.      F8     - Shift (X) (Y) bits left                          
  1472.      F9     - Bitwise EXCLUSIVE 
  1473.               OR of (X) and (Y)
  1474.      F10    - One's complement (X)           
  1475.  
  1476. Note that two's complement of (X) is ob- 
  1477. tainable by doing an EXCLUSIVE OR (F9) 
  1478. with (Y) set to 0. 
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.                                      Page 25
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.                PC/CALCULATOR                
  1513.  
  1514.  
  1515.  
  1516. _________________________________ FIN FUNCTION KEY MODE (Financial) 
  1517.  
  1518. Financial mode is certainly the most com- 
  1519. plex function key mode available in PC/CAL- 
  1520. CULATOR. For further help in using this 
  1521. mode, I recommend _____________________                  Executive Calculator 
  1522. _________, available from Texas Instru- Guidebook                               
  1523. ments product centers. 
  1524.  
  1525. This mode uses the auxiliary memories 5-9 
  1526. to store percent interest, periods, 
  1527. payment, present value, and future value, 
  1528. which are the five variables used to per- 
  1529. form financial calculations. These values 
  1530. are stored by entering a number and pres- 
  1531. sing the appropriate function key. In 
  1532. general, there are two main types of finan- 
  1533. cial problems that can be solved: compound 
  1534. interest problems and annuity problems. An- 
  1535. nuity problems can be further broken down 
  1536. into straight annuity problems and annuity 
  1537. due problems. 
  1538.  
  1539. PC/CALCULATOR recognizes a problem as a 
  1540. compound interest problem if no payment 
  1541. amount is entered and one of the calculate 
  1542. percent interest, calculate periods, cal- 
  1543. culate present value, or calculate future 
  1544. value keys is pressed. Otherwise, a 
  1545. problem is assumed to be an annuity 
  1546. problem. 
  1547.  
  1548. Annuity problems are set to the annuity 
  1549. due mode by pressing shift F5 and then are 
  1550. set back by pressing F5. When in annuity 
  1551. due mode, the word DUE is displayed below 
  1552. the E line. Annuity due problems are an- 
  1553. nuity problems where the payments are made 
  1554.  
  1555.  
  1556.  
  1557. Page 26                                     
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.                PC/CALCULATOR                
  1579.  
  1580.  
  1581.  
  1582. at the beginning of each period. Normal an- 
  1583. nuities are paid at the end of the period. 
  1584. If the calculate present value key or cal- 
  1585. culate future value key is pressed, the 
  1586. other three variables (percent interest, 
  1587. periods, and payment) are used to cal- 
  1588. culate the result. If one of the calculate 
  1589. percent interest, periods, or payment keys 
  1590. is pressed, three variables are used to do 
  1591. the calculation. Two of these variables 
  1592. are chosen from percent interest, periods, 
  1593. and payment, and the third varialbe is 
  1594. either future value or present value. If 
  1595. both future and present values have been 
  1596. entered, then the most recently entered 
  1597. value is the one used. 
  1598.  
  1599. When calculating percent interest, there 
  1600. is always the possibility that the 
  1601. variables entered are inconsistent. If so, 
  1602. the iterative process used to compute the 
  1603. value will not converge. An error message 
  1604. is printed after 1000 iterations, which 
  1605. may take a while. Using the CTRL-BREAK key 
  1606. may be better than waiting. 
  1607.  
  1608. __________________________ Compound Interest Problems 
  1609.  
  1610. The four variables in compound interest 
  1611. problems are percent interest, periods, 
  1612. present value, and future value. These are 
  1613. entered by pressing the following keys: 
  1614.  
  1615.      F2  - Percent interest
  1616.      F4  - Periods
  1617.      F8  - Present value
  1618.      F10 - Future value
  1619.  
  1620.  
  1621.  
  1622.  
  1623.                                      Page 27
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.                PC/CALCULATOR                
  1645.  
  1646.  
  1647.  
  1648. To calculate the unknown value, press the 
  1649. shifted version of the above key. Also, 
  1650. the payment amount may be solved for by 
  1651. pressing shift F6. 
  1652.  
  1653. ________________ Annuity Problems 
  1654.  
  1655. For annuity problems, first set the an- 
  1656. nuity mode by pressing F5 or shift F5. The 
  1657. variables in annuity problems are tult could be 
  1658. that PC/CALCULATOR tries as many as 1000 
  1659. iterations before giving up. If this hap- 
  1660. pens, you will receive an error message. 
  1661. Without an 8087 chip, this could take a 
  1662. few minutes. If you want to stop the 
  1663. process, the only way is to press 
  1664. CTRL-BREAK, which will return you to DOS. 
  1665.  
  1666. Once your data is entered, you may compute 
  1667. four more important financial values by 
  1668. first putting a number of periods in the 
  1669. (X) register and then pressing the fol- 
  1670. lowing function keys: 
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676. Page 28                                     
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.                PC/CALCULATOR                
  1698.  
  1699.  
  1700.  
  1701. F7        - Balance due on a loan
  1702.             after (X) payments 
  1703. Shift F7  - Accrued interest on a
  1704.             loan after (X) payments
  1705. F9        - Interest on current payment 
  1706.             after (X) payments
  1707. Shift F9  - Principal on current payment
  1708.             after (X) payments
  1709.  
  1710. __________________FINANCIAL EXAMPLES
  1711.  
  1712. __________ You have $15,000 in a savings Example 1.                               
  1713. account at 14% interest computed monthly. 
  1714. After one year, what is the balance? 
  1715.   NUMBER  ACTION
  1716.    14.00  Enter
  1717.    12.00  Enter
  1718.     1.17  /
  1719.           Enter i%                 
  1720.    12.00  Enter
  1721.           Enter periods          
  1722. 15000.00  Enter
  1723. 17240.13  Calculate future value
  1724.  
  1725. Answer: Balance after one
  1726.         year = $17240.13
  1727.  
  1728. __________ You have a savings account at Example 2.                               
  1729. 14% interest computed monthly. You deposit 
  1730. $1000 a month for one year. What is the 
  1731. balance after one year? 
  1732.    14.00  Enter
  1733.    12.00  Enter
  1734.     1.17  /
  1735.           Enter i%
  1736.    12.00  Enter
  1737.           Enter periods
  1738.  1000.00  Enter
  1739.  
  1740.  
  1741.  
  1742.                                      Page 29
  1743.  
  1744.  
  1745.  
  1746.  
  1747.  
  1748.  
  1749.  
  1750.  
  1751.  
  1752.  
  1753.  
  1754.  
  1755.  
  1756.  
  1757.  
  1758.  
  1759.  
  1760.  
  1761.  
  1762.  
  1763.                PC/CALCULATOR                
  1764.  
  1765.  
  1766.  
  1767.           Enter payment
  1768. 12800.75  Calculate future value
  1769.  
  1770. Answer: Balance after one
  1771.         year = $12800.75
  1772.  
  1773. __________ You take out a car loan for Example 3.                             
  1774. $10,000 at 16% for four years. What is the 
  1775. payment? 
  1776.    16.00  Enter
  1777.    12.00  Enter
  1778.     1.33  /
  1779.           Enter i%
  1780.    12.00  Enter
  1781.     4.00  Enter
  1782.    48.00  *
  1783.           Enter periods
  1784. 10000.00  Enter
  1785.           Enter present value
  1786.   283.40  Calculate payment
  1787.  
  1788. Answer: Payment is $283.40
  1789.  
  1790. __________ You take out a home improvement Example 4.                                 
  1791. loan for $20,000 at 12%. You wish to pay 
  1792. $800 a month. How long will it take to pay 
  1793. off the loan? 
  1794.    12.00  Enter
  1795.    12.00  Enter
  1796.     1.00  /
  1797.           Enter i%
  1798.   800.00  Enter
  1799.           Enter payment
  1800. 20000.00  Enter
  1801.           Enter present value
  1802.    28.91  Calculate periods
  1803.    28.00  Enter
  1804.   722.54  Balance
  1805.  
  1806.  
  1807.  
  1808. Page 30                                     
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.                PC/CALCULATOR                
  1830.  
  1831.  
  1832.  
  1833. Answer: 29 months with the
  1834.         final payment of $722.54
  1835.  
  1836. __________ Your home mortgage is $100,000 Example 5.                                
  1837. at 11% for 30 years. After 5 years, what 
  1838. part of your payment is interest, and what 
  1839. part is principle? 
  1840.      11.00  Enter
  1841.      12.00  Enter
  1842.        .92  /
  1843.             Enter i%
  1844.      30.00  Enter
  1845.      12.00  Enter
  1846.     360.00  *
  1847.             Enter periods
  1848.  100000.00  Enter
  1849.             Enter present value
  1850.     952.32  Calculate payment
  1851.       5.00  Enter
  1852.      12.00  Enter
  1853.      60.00  *
  1854.     891.24  Interest
  1855.      60.00  Cancel
  1856.      61.09  Principle
  1857.  
  1858. Answer: Of a payment of $952.32,
  1859.         $891.24 is interest,
  1860.         and $61.09 is principle
  1861.  
  1862. __________ Your friend offers you a loan Example 6.                               
  1863. of $1000 if you will pay him $100 a month 
  1864. for 13 months. What interest rate is he of- 
  1865. fering you? 
  1866.   13.00  Enter
  1867.          Enter periods
  1868.  100.00  Enter
  1869.          Enter payment
  1870. 1000.00  Enter
  1871.  
  1872.  
  1873.  
  1874.                                      Page 31
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.                PC/CALCULATOR                
  1896.  
  1897.  
  1898.  
  1899.          Enter pre6.78  Enter payment
  1900. 272615.08  Calculate future value
  1901. 405291.86  +
  1902.  
  1903. Answer: A nest egg of $405,291.86
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920. Page 32                                     
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.                PC/CALCULATOR                
  1942.  
  1943.  
  1944.  
  1945. ______________________CONV FUNCTION KEY MODE
  1946.  
  1947. The function keys in CONV mode may be used 
  1948. to convert between various physical units, 
  1949. such as between metric and English units. 
  1950. The amount to be converted is entered, and 
  1951. the result is found at the bottom of the 
  1952. stack. To convert to a unit, press the 
  1953. function key with that unit's name. 
  1954.  
  1955.      F1     - Swap (X) and (Y)   
  1956.      SH F1  - Roll (X) to top    
  1957.      F2     - Centimeters to inches
  1958.      SH F2  - Inches to centimeters
  1959.      F3     - Duplicate (X)       
  1960.      SH F3  - Drop (X)            
  1961.      F4     - Kilometers to miles 
  1962.      SH F4  - Miles to kilometers  
  1963.      F5     - Kilograms to pounds 
  1964.      SH F5  - Pounds to kilograms 
  1965.      F6     - Square centimeters to   
  1966.               square inches
  1967.      SH F6  - Square inches to        
  1968.               square centimeters
  1969.      F7     - Liters to U.S. gallons
  1970.      SH F7  - U.S. gallons to liters
  1971.      F8     - Hectares to acres   
  1972.      SH F8  - Acres to hectares   
  1973.      F9     - Degrees Celcius to 
  1974.               degrees Fahrenheit
  1975.      SH F9  - Degrees Celsius to
  1976.               degrees Fahrenheit
  1977.      F10    - Cubic meters to
  1978.               cubic feet
  1979.      SH F10 - Cubic feet to    
  1980.               cubic meters
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.                                      Page 33
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.                PC/CALCULATOR                
  2008.  
  2009.  
  2010.  
  2011. _________________________IV. BACKGROUND CALCULATOR
  2012.  
  2013.  
  2014. ________OVERVIEW
  2015.  
  2016. The background calculator is a special ver- 
  2017. sion of PC/CALCULATOR that may be loaded 
  2018. into your computer, where it is available 
  2019. while other programs are being run. An in- 
  2020. vocation key is chosen which suspends the 
  2021. running program and starts the calculator. 
  2022. Any key may be chosen as the invocation 
  2023. key. The background calculator is more 
  2024. limited than the regular version and will 
  2025. not run calculator programs. The features 
  2026. that print to disk or printer, such as the 
  2027. 'P' key and the 'T' key, are not 
  2028. available. There is only one generic help 
  2029. screen, which can't be read from disk. The 
  2030. background calculator will not run with 
  2031. DOS version 1.0 or 1.1; you ____ have ver-                             must           
  2032. sion 2.0. 
  2033.  
  2034. ____________________________________ INSTALLING THE BACKGROUND CALCULATOR 
  2035.  
  2036.  
  2037. To start the background calculator, enter 
  2038. the command 
  2039.  
  2040.     BCALC
  2041.         [E=CODE-NUMBER  -E]
  2042.         [F=FOREGROUND-COLOR]
  2043.         [B=BACKGROUND-COLOR] [+U]
  2044.  
  2045. The 'F=' and 'B=' options are the same as 
  2046. for the regular calculator. There are two 
  2047. ways to choose the invocation key: by pres- 
  2048. sing a key or by entering a parameter on 
  2049.  
  2050.  
  2051.  
  2052. Page 34                                     
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069.  
  2070.  
  2071.  
  2072.  
  2073.                PC/CALCULATOR                
  2074.  
  2075.  
  2076.  
  2077. the command line. If no 'E=' option is en- 
  2078. tered, the calculator will prompt you for 
  2079. an invocation key. This key may be any key 
  2080. and may be used with a shift, Alt, or Ctrl 
  2081. key. The location of the key is very impor- 
  2082. tant. The '1' key over the letter 'Q' is 
  2083. different from the '1' key on the keypad. 
  2084. When pressed, the invocation key will 
  2085. suspend the current program and start the 
  2086. calculator. 
  2087.  
  2088. This method of setting the invocation key 
  2089. does not work when used in a batch file 
  2090. such as AUTOEXEC.BAT. Instead, you may 
  2091. specify a key with the 'E=' option. To 
  2092. find the code number for a key, you must 
  2093. use the program FINDKEY, which is located 
  2094. on the distribution diskette. Run FINDKEY 
  2095. and press the invocation key that you wish 
  2096. to use. FINDKEY will display the code num- 
  2097. ber for that key on the screen. 
  2098.  
  2099. Note: The '-E' option, which may not be 
  2100. used with the 'E=' option, will cause the 
  2101. background calculator to run in the 
  2102. foreground. You may wish to use the back- 
  2103. ground version in this way, brd at the 
  2104. time you press this key. It must also not 
  2105. be in graphics mode. 
  2106.  
  2107. _________________________________ RUNNING THE BACKGROUND CALCULATOR 
  2108.  
  2109. With the exceptions noted above, the back- 
  2110. ground calculator will function the same 
  2111. as the regular calculator. It does have 
  2112. one additional key: the 'B' key. Pressing 
  2113. this key will allow you to review the last 
  2114. screen of the program you were running 
  2115. before invoking the calculator. By using 
  2116. the 'B' key, you can review any numbers 
  2117. that you may want to use in your cal- 
  2118. culations. After this key is pressed, the 
  2119. next key entered will return you to the 
  2120. calculator. 
  2121.  
  2122. _________________________________ EXITING THE BACKGROUND CALCULATOR 
  2123.  
  2124. You may leave the background calculator 
  2125. and return to your program by pressing 
  2126. either the escape key (Esc) or the 'Q' 
  2127. key. The state of the calculator will 
  2128. remain unchanged. If you return to the cal- 
  2129. culator at a later time, the stored num- 
  2130. bers will be there if you need them. If 
  2131. you use the escape key to exit the cal- 
  2132. culator, the program you were running will 
  2133. restart immediately. However, if you use 
  2134. the 'Q' key to exit, up to 14 digits of 
  2135. the bottom number on the stack will be 
  2136. stored in the keyboard input buffer. These 
  2137. digits will then be entered to the program 
  2138. you were running just as if you had keyed 
  2139. them in yourself. 
  2140.  
  2141.  
  2142.  
  2143. Page 36                                     
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155.  
  2156.  
  2157.  
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.                PC/CALCULATOR                
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170. _______________________ V. PROGRAMMING FEATURES 
  2171.  
  2172. _____________ PROGRAM FILES 
  2173.  
  2174. Program files are regular DOS Ascii files 
  2175. which are used as streams of data. This 
  2176. data becomes input to PC/CALCULATOR just 
  2177. as if it was entered from the keyboard. 
  2178. All characters are always translated to up- 
  2179. per case. Program files may be created 
  2180. directly from the calculator in its learn 
  2181. mode or may be edited by any file editor. 
  2182. In learn mode, all keystrokes entered at 
  2183. the keyboard are processed and sent to a 
  2184. file. A combination of these two tech- 
  2185. niques will probably prove best. Files can 
  2186. be edited with a text editor without ex- 
  2187. iting the calculator by executing a 
  2188. program with the <SHELL> command described 
  2189. below. In addition to the stream of 
  2190. keystrokes in a program file, you may use 
  2191. special commands of the form 
  2192.  
  2193.     <COMMAND>PARAMETERS 
  2194.  
  2195. Since certain characters are ignored or 
  2196. cannot be entered into a text file, such 
  2197. as the return key or the function keys, 
  2198. there are special commands that simulate 
  2199. these keys. For example, 
  2200.  
  2201.     <CR> = return key 
  2202.  
  2203. A number of programs have been supplied 
  2204. for demonstration and illustration. Start 
  2205. by running the program MENU, which 
  2206.  
  2207.  
  2208.  
  2209.                                      Page 37
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.                PC/CALCULATOR                
  2231.  
  2232.  
  2233.  
  2234. branches to these other programs. 
  2235.  
  2236. ________________________ SPECIAL PROGRAMMING KEYS 
  2237.  
  2238. There are four special keys which are used 
  2239. only for programming functions. 
  2240.  
  2241. _________ THE L KEY 
  2242.  
  2243. The L key puts the calculator into learn 
  2244. mode. The calculator will prompt for a 
  2245. file name to write to. If a return is en- 
  2246. tered without a file name, any previous 
  2247. name entered from the L or K key will be 
  2248. used. The extension ".PCL" is 
  2249. automatically appended to the file name en- 
  2250. tered. The word "LEARN" will appear below 
  2251. the entry line to indicate that the cal- 
  2252. culator is in learn mode. All key strokes 
  2253. entered from the keyboard are placed in 
  2254. the program file. The enter key is trans- 
  2255. lated to the string <CR>, the tab key is 
  2256. translated to the string <TAB>, and func- 
  2257. tion keys are translated to the string 
  2258. <FUNCT>##. (See the section below on com- 
  2259. mands for further information on these 
  2260. keys.) Also, entering the 'Z' key will 
  2261. switch you to a direct input screen. From 
  2262. this screen, any data may be entered into 
  2263. the program file; however, the intended 
  2264. use of this screen is to enter program com- 
  2265. mands. 
  2266.  
  2267. _________ THE K KEY 
  2268.  
  2269. The K key puts the calculator into execuds of the 
  2270. format <command>parameters cause various 
  2271. special features to be invoked. Command 
  2272. names are similar to BASIC command names 
  2273. to make learning easier. While in execute 
  2274. mode, and while the screen is not cleared 
  2275. with <CLS>, the word "EXEC" appears below 
  2276. the entry line. In execution mode, all 
  2277. keys entered from the keyboard are thrown 
  2278. away except J ctrl-C or ctrl-BREAK, unless 
  2279. a command that receives input from the key- 
  2280. board is being executed. 
  2281.  
  2282. _________ THE J KEY 
  2283.  
  2284. When in learn mode, the J key closes the 
  2285. file and turns off learn mode. While in ex- 
  2286. ecute mode, the J key will always stop ex- 
  2287. ecution. 
  2288.  
  2289. _________ THE Z KEY 
  2290.  
  2291. The 'Z' key may only be used in learn 
  2292. mode. It immediately brings up an entry 
  2293. screen, from which data may be entered 
  2294. directly to the program file. Pressing the 
  2295. return key without entering any data will 
  2296. return you to where you left off. The pur- 
  2297. pose of this screen is to allow program 
  2298. commands to be entered from the cal- 
  2299. culator. However, any data may be entered 
  2300. this way. 
  2301.  
  2302.  
  2303.  
  2304.                                      Page 39
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317.  
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325.                PC/CALCULATOR                
  2326.  
  2327.  
  2328.  
  2329. ___________________________ PROGRAM INVOCATION FROM DOS 
  2330.  
  2331. Program files may be started from DOS by 
  2332. using the following format 
  2333.  
  2334.     CALC K=PROGRAM-NAME 
  2335.  
  2336. Also, the calculator may forced into learn 
  2337. mode from DOS by the following command: 
  2338.  
  2339.     CALC L=PROGRAM-NAME 
  2340.  
  2341. ________________ PROGRAM COMMANDS 
  2342.  
  2343. Once started, the calculator reads input 
  2344. from the program file and processes it as 
  2345. if it was entered from the keyboard with 
  2346. only a few exceptions. Ascii returns and 
  2347. linefeeds are ignored, making editing a 
  2348. program file much simpler. Commands of the 
  2349. form <command> are processed in special 
  2350. ways, each of which is described below. A 
  2351. command may have either optional or re- 
  2352. quired parameters following it. 
  2353.  
  2354. <X> 
  2355.      A label (X may be any character or 
  2356.      number). A label is not really a com- 
  2357.      mand, and it is usually ignored. It 
  2358.      provides a place to branch to for the 
  2359.      <GOTO>, <ONERROR>, and <IF> commands. 
  2360.      The label <*> has special 
  2361.      significance. When branching to a 
  2362.      label, the <*> label will always 
  2363.      cause a match. 
  2364. <BEEP> 
  2365.      Causes a beep on the speaker to sig- 
  2366.      nal some event or error. 
  2367.  
  2368.  
  2369.  
  2370. Page 40                                     
  2371.  
  2372.  
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391.                PC/CALCULATOR                
  2392.  
  2393.  
  2394.  
  2395. <BOX>height,length 
  2396.      Displays a double lined box on the 
  2397.      screen. The upper left-hand corner of 
  2398.      the box is placed at the current cur- 
  2399.      sor position. See the <LOCATE> com- 
  2400.      mand to set this cursor position. The 
  2401.      color of the box is set by the 
  2402.      <COLOR> command. The inside of the 
  2403.      box is automatically blanked out. If 
  2404.      the screen is in cleared mode, the 
  2405.      box will remain on the screen in- 
  2406.      definitely. If not in cleared mode, 
  2407.      the box will remain until a non- 
  2408.      numeric entry is entered at the key- 
  2409.      board or through the program file. 
  2410.      The height and length of the box are 
  2411.      set as parameters which must be en- 
  2412.      tered. If the right or lower bottom 
  2413.      edge of the box is off the screen, 
  2414.      the program will stop with an error 
  2415.      message. 
  2416. <CALC>X 
  2417.      Causes execution to stop temporarily 
  2418.      until the key X is pressed. When this 
  2419.      happens, the program continues. The X 
  2420.      parameter is required. 
  2421. <CHAIN>(file name) 
  2422.      Causes transfer to another program 
  2423.      file. If the optional file name 
  2424.      parameter is entered, the transfer 
  2425.      takes place immediately; otherwise, 
  2426.      the user is prompted for the file 
  2427.      name at the keyboard. The extension 
  2428.      ".PCL" is added to the file name. 
  2429. <CLS> 
  2430.      Clears the screen and keeps the cal- 
  2431.      culator in clear mode. To turn this 
  2432.      mode off, use the command <SCREEN>. 
  2433.  
  2434.  
  2435.  
  2436.                                      Page 41
  2437.  
  2438.  
  2439.  
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450.  
  2451.  
  2452.  
  2453. and off error trap- 
  2454.      ping. When executed with a label 
  2455.      parameter X, error trapping is in ef- 
  2456.      fect. If a calculator error such as 
  2457.      dividing by zero happens, a branch to 
  2458.      the label X will start. This enables 
  2459.      recovery if there is an unexpected er- 
  2460.      ror. If executed without the label 
  2461.      parameter, error trapping is turned 
  2462.      off. 
  2463. <FUNCT>number 
  2464.      Equivalent to pressing one of the 
  2465.      function keys. The number parameter 
  2466.      is required and is a number between 1 
  2467.      and 20. 
  2468. <GOTO>(X) 
  2469.      Causes a branch to the specified 
  2470.      label X. If the label parameter is 
  2471.      omitted, the next key from the key- 
  2472.      board is used for the label. 
  2473. <IF>VTVX 
  2474.      Similar to <GOTO> except that the 
  2475.      branch is executed conditionally. The 
  2476.      V parameters are variables, which may 
  2477.      be X,Y,A,B,C,D or 0-9 which cor- 
  2478.      respond to the stack memories or the 
  2479.      auxiliary memories. T is a comparison 
  2480.  
  2481.  
  2482.  
  2483. Page 42                                     
  2484.  
  2485.  
  2486.  
  2487.  
  2488.  
  2489.  
  2490.  
  2491.  
  2492.  
  2493.  
  2494.  
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.                PC/CALCULATOR                
  2505.  
  2506.  
  2507.  
  2508.      type. The valid types are: 
  2509.          EQ - variables equal
  2510.          NE - variables not equal
  2511.          GT - first variable greater
  2512.               than the second
  2513.          GE - first variable greater
  2514.               than or equal to the second
  2515.          LT - first variable less
  2516.               than the second
  2517.          LE - first variable less than or
  2518.               equal to the second
  2519.          The X parameter is the label to be
  2520.          branched to. All four parameters
  2521.          are required.
  2522. <INKEY> 
  2523.      Causes the calculator to pause until 
  2524.      the next key is entered from the key- 
  2525.      board. This key is discarded. 
  2526. <INPUT> 
  2527.      Causes the calculator to pause until 
  2528.      the next time a return key is 
  2529.      pressed. This allows the entry of a 
  2530.      number from the keyboard. Keys other 
  2531.      than numbers and the return key are 
  2532.      allowed. 
  2533. <LOCATE>xcoordinate,ycoordinate 
  2534.      Sets the cursor position at which the 
  2535.      <BOX> and <PRINT> will start at. The 
  2536.      <BOX> command does not reposition the 
  2537.      cursor, while the <PRINT> command 
  2538.      does. 
  2539. <LPRINT>FMT 
  2540.      Prints to the printer file, which may 
  2541.      be the printer. The printer file is 
  2542.      set with the P= parameter when the 
  2543.      calculator is invoked. The default 
  2544.      printer file is the printer device 
  2545.      PRN:. FMT is described in the <PRINT> 
  2546.  
  2547.  
  2548.  
  2549.                                      Page 43
  2550.  
  2551.  
  2552.  
  2553.  
  2554.  
  2555.  
  2556.  
  2557.  
  2558.  
  2559.  
  2560.  
  2561.  
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569.  
  2570.                PC/CALCULATOR                
  2571.  
  2572.  
  2573.  
  2574.      command. The FMT parameter is not re- 
  2575.      quired. 
  2576. <PRINT>FMT 
  2577.      Prints variables or text on the 
  2578.      screen. The printing starts in the 
  2579.      cursor position set by the <LOCATE> 
  2580.      command. This cursor position is 
  2581.      repositioned by this command. If the 
  2582.      format FMT is followed by a ';', the 
  2583.      cursor ends up after the last item 
  2584.      printed; otherwise, the cursor 
  2585.      returns to the beginning of the next 
  2586.      line. The FMT consists of a list of 
  2587.      items separated by ','s. The items 
  2588.      may either be a text string which is 
  2589.      enclosed by double quotes '"' or a 
  2590.      variable (X,Y,A,B,C,D, or 0-9). The 
  2591.      text strings are printed directly. 
  2592.      The variables are formatted with the 
  2593.      current display format and are 
  2594.      printed in a 25-character field. The 
  2595.      FMT parameter is not required. 
  2596. <REM>remark 
  2597.      Allows the insertion of a comment in 
  2598.      the program file. Both the <REM> and 
  2599.      the remark parameter are skipped. 
  2600. <SCREEN> 
  2601.      Turns the screen display back on 
  2602.      after a <CLS> command has been ex- 
  2603.      ecuted. 
  2604. <SHELL> 
  2605.      Executes a DOS 2.0 command. Do not 
  2606.      use this command under DOS 1.0 or 
  2607.      1.1: the results are unpredictable. 
  2608. <SLEEP> 
  2609.      Causes the calculator to pause for 
  2610.      about 5 seconds. 
  2611.  
  2612.  
  2613.  
  2614.  
  2615. Page 44                                     
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622.  
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635.  
  2636.                PC/CALCent to pressing the tab key 
  2637.      from the keyboard. 
  2638. <TRACEOFF> 
  2639.      Turns off the trace mode. 
  2640. <TRACEON> 
  2641.      Turns on the trace mode. When the 
  2642.      trace mode is on, every time a com- 
  2643.      mand is executed, the line number and 
  2644.      command is printed to the printer 
  2645.      file. This file is set by the P= 
  2646.      parameter when invoking the cal- 
  2647.      culator. 
  2648.  
  2649.  
  2650.  
  2651.  
  2652.  
  2653.  
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659.  
  2660.  
  2661.  
  2662.                                      Page 45
  2663.  
  2664.  
  2665.  
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671.  
  2672.  
  2673.  
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681.  
  2682.  
  2683.                PC/CALCULATOR                
  2684.  
  2685.  
  2686.  
  2687. ______________ VI. APPENDICES 
  2688.                 __________                APPENDIX A
  2689.                 ___________                KEY SUMMARY
  2690. Esc    - Exit, save state
  2691. Tab    - Switch function key mode
  2692. Shift tab    - Toggle degrees/radians mode
  2693. C    - Clear
  2694.         M - Auxiliary memories only
  2695.         S - Stack only
  2696.         T - Tape trace only
  2697.         C - All of the above
  2698. D    - Display mode change
  2699.         D - Float
  2700.         F - Float
  2701.         H - Hex
  2702.         O - Octal
  2703.         B - Binary
  2704.         0-9 - Fixed
  2705. E    - E+ (exponent)
  2706. F    - E- (negative exponent)
  2707. J    - End programming mode
  2708. K    - Start program
  2709. L    - Learn program
  2710. M    - Toggle keyboard/mouse mode
  2711. N    - Switch negative sign
  2712. P    - Print stack and aux. memories
  2713. Q    - Exit the calculator
  2714. R    - Restore aux. memory
  2715. S    - Store aux. memory
  2716. T    - Toggle printer tape
  2717. U    - Un-do last key
  2718. V    - Switch function key mode
  2719.         1 - CALC    5 - PROG
  2720.         2 - CALC2   6 - FIN
  2721.         3 - TRIG    7 - CONV
  2722.         4 - STATS
  2723. Y    - Toggle on screen tape
  2724. Z    - Learn mode data entry
  2725.  
  2726.  
  2727.  
  2728. Page 46                                     
  2729.  
  2730.  
  2731.  
  2732.  
  2733.  
  2734.  
  2735.  
  2736.  
  2737.  
  2738.  
  2739.  
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745.  
  2746.  
  2747.  
  2748.  
  2749.                PC/CALCULATOR                
  2750.  
  2751.  
  2752.  
  2753.                 __________                APPENDIX B
  2754.               ______________              ERROR MESSAGES
  2755.  
  2756. 8 And 9 Are Not Legal In Octal Mode 
  2757.      Attempted to enter an 8 or 9 in octal 
  2758.      mode 
  2759. Add Overflow 
  2760.      The sum of two numbers is greater 
  2761.      than 1.E+308 or less than -1.E+308 
  2762. Can't Open Print File Or Device 
  2763.      P= parameter on command line 
  2764.      specified a bad disk, path, file 
  2765.      name, or device name 
  2766. Can't Enter A Decimal Now 
  2767.      A decimal has already been entered, 
  2768.      or an exponent has been entered, or 
  2769.      calculator is in HEX, BINARY or OCTAL 
  2770.      MODE 
  2771. Can't Enter An Exponent Now 
  2772.      An exponent has already been entered, 
  2773.      or calculator is in HEX, BINARY, or 
  2774.      OCTAL MODE 
  2775. Can't Round, Argument Too Large 
  2776.      Rounding will not accomplish anything 
  2777.      because the exponent is too large 
  2778. Character Not Recognized: Try 'H' For Help 
  2779.      Unknown key pressed 
  2780. Combination Error 
  2781.      Result would overflow 1.E+308 limit 
  2782. Cube Overflow 
  2783.      Result would overflow 1.E+308 limit 
  2784. Cube Underflow 
  2785.      Result would be less than 1.E-308 and 
  2786.      greater than -1.E-308 
  2787. Divide Overflow 
  2788.      Result would overflow 1.E+308 limit 
  2789.  
  2790.  
  2791.  
  2792.  
  2793.  
  2794.                                      Page 47
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.                PC/CALCULATOR                
  2816.  
  2817.  
  2818.  
  2819. Divide Underflow 
  2820.      Result would be less than 1.E-308 
  2821. Divide By Zero 
  2822.      What else? 
  2823. Exponential Underflow 
  2824.      Result would be less than 1.E-308 
  2825. Exponential Overflow 
  2826.      Result would overflow 1.E+308 limit 
  2827. Factorial Overflow 
  2828.      Result would overflow 1.E+308 limit 
  2829. Help Is Not Available In This Mode 
  2830.      Help file 'CALC.HEn' is not in cur- 
  2831.      rent directory 
  2832. Input Underflow 
  2833.      Number entered is under the 1.E-308 
  2834.      limit 
  2835. Input Overflow 
  2836.      Number entered is over the 1.E+308 
  2837.      limit 
  2838. Maximum Entry Size Exceeded 
  2839.      Attempted to enter more than the max- 
  2840.      imum allowed on the E line 
  2841. Multiply Underflow 
  2842.      Result would be less than the 1.E-308 
  2843.      limit 
  2844. Multiply Overflow 
  2845.      Result would overflow 1.E+308 limit 
  2846. No Future Value Entered 
  2847.      Attempted to calculate percent in- 
  2848.      terest, period, or PV with payment = 
  2849.      0 and no FV. Calculator is trying to 
  2850.      do a compound interest problem 
  2851. No Present Value 
  2852.      Attempted to calculate percent in- 
  2853.      terest, period, or PV with payment = 
  2854.      0  problem 
  2855. Not A Valid Memory, Try 0-9 
  2856.      Entered an 'S' to store or an 'R' to 
  2857.      restore followed by a key other than 
  2858.      0-9 
  2859. Not A Valid Character: Try 'H' For Help 
  2860.      Unknown key entered 
  2861. Only 1 And 0 Are Legal In Binary Mode 
  2862.      Attempted to enter a number other 
  2863.      that '0' or '1' in binary mode 
  2864. Out Of Domain Of Function 
  2865.      Square root of a negative number, arc 
  2866.      sine, or cosine of a number greater 
  2867.      than 1 or less than -1, etc. 
  2868. Permutation Error 
  2869.      Result would overflow 1.E+308 limit 
  2870. Result Too Large 
  2871.      Result would overflow 1.E+308 limit 
  2872. Square Underflow 
  2873.      Result would be smaller than the 
  2874.      1.E-308 limit 
  2875. Square Overflow 
  2876.      Result would overflow 1.E+308 limit 
  2877. Subtract Underflow 
  2878.      Result would be smaller than the 
  2879.      1.E-308 limit 
  2880. Subtract Overflow 
  2881.      Result would overflow 1.E+308 limit 
  2882.  
  2883.  
  2884.  
  2885.  
  2886.  
  2887.  
  2888.                                      Page 49
  2889.  
  2890.  
  2891.  
  2892.  
  2893.  
  2894.  
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900.  
  2901.  
  2902.  
  2903.  
  2904.  
  2905.  
  2906.  
  2907.  
  2908.  
  2909.                PC/CALCULATOR                
  2910.  
  2911.  
  2912.  
  2913.      Too Many Iterations For Interest 
  2914. Calculation 
  2915.      Attempted to calculate percent in- 
  2916.      terest in an annuity problem. Itera- 
  2917.      tive process will not converge; check 
  2918.      figures for plausibility 
  2919. Unknown Floating Point Error ???? 
  2920.      Should never happen; please record 
  2921.      what caused it and contact Micro Busi- 
  2922.      ness Applications 
  2923. Use: Calc P=Print-File 
  2924.           F=Foreground-Color 
  2925.           B=Background-Color 
  2926.           K=Program-to-Run 
  2927.           L=Program-to-Write +U 
  2928.      Entered CALC ? <CR>; this is not an 
  2929.      error message 
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935.  
  2936.  
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950.  
  2951.  
  2952.  
  2953.  
  2954. Page 50                                     
  2955.  
  2956.  
  2957.  
  2958.  
  2959.  
  2960.  
  2961.  
  2962.  
  2963.  
  2964.  
  2965.  
  2966.  
  2967.  
  2968.  
  2969.  
  2970.  
  2971.  
  2972.  
  2973.  
  2974.  
  2975.                PC/CALCULATOR                
  2976.  
  2977.  
  2978.  
  2979.                 __________                APPENDIX C
  2980.                  ________                 FORMULAS
  2981.  
  2982. _____CALC2
  2983. Markup %    = ((Sell - Cost) / Sell) * 100
  2984. Delta %    = (( (X) - (Y) )/(Y)) * 100
  2985. N!    = N * (N-1) * (N-2) ... 3 * 2 * 1
  2986. P x:y    = x!/(x-y)!
  2987. C x:y    = x!/(y! * (x-y)!)
  2988.  
  2989. _____STATS
  2990. MEAN x    = SUM x's/(N = number of x's)
  2991. Var of x    = (Sum(x*x)-(Sum(x) * Sum(x))/N)/N
  2992.  
  2993. Var of x
  2994. wt. (N-1)    = (Sum(x*x)-(Sum(x) * Sum(x))/N)/(N-1)
  2995. Std dev    = Square root(Var)
  2996.  
  2997.          N*Sum(x*y)-Sum(x)*Sum(y)
  2998. Slope    = -----------------------------
  2999.          N*Sum(x*x)-Sum(x)*Sum(x)
  3000.  
  3001. Y intercpt = (Sum(y)-Slope*Sum(x))/N
  3002.  
  3003. ___FIN
  3004. Compound interest equation
  3005.      FV = PV * (1 + i)**(periods)
  3006. Annuity equations
  3007.      PV = Pay*(1-(1+i)**(-periods))
  3008.          --------------------------
  3009.               i
  3010.      FV = Pay*((1+i)**(periods) - 1)
  3011.          --------------------------
  3012.               i
  3013. Annuity due equations
  3014.      PV = (i+1) (annuity PV)
  3015.      FV = (i+1) (annuity FV)
  3016.  
  3017.  
  3018.  
  3019.  
  3020.                                      Page 51
  3021.  
  3022.  
  3023.  
  3024.  
  3025.  
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031.  
  3032.  
  3033.  
  3034.  
  3035.  
  3036.  
  3037.  
  3038.  
  3039.  
  3040.  
  3041.                PC/CALCULATOR                
  3042.  
  3043.  
  3044.  
  3045. Bal(X=#payments) = 
  3046.      Pay * (1+i)**(-periods + x)
  3047.      -----------------------
  3048.         i
  3049. Accrued interest(x) =
  3050.      x * pay + Bal(x) - PV
  3051. Current interest(x) =
  3052.      Bal(x-1) * i
  3053. Current principal(x) =
  3054.      Pay - Current interest(x)
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060.  
  3061.  
  3062.  
  3063.  
  3064.  
  3065.  
  3066.  
  3067.  
  3068.  
  3069.  
  3070.  
  3071.  
  3072.  
  3073.  
  3074.  
  3075.  
  3076.  
  3077.  
  3078.  
  3079.  
  3080.  
  3081.  
  3082.  
  3083.  
  3084.  
  3085.  
  3086. Page 52                                     
  3087.  
  3088.  
  3089.  
  3090.  
  3091.  
  3092.  
  3093.  
  3094.  
  3095.  
  3096.  
  3097.  
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.                PC/CALCULATOR                
  3108.  
  3109.  
  3110.  
  3111.                    _____                   INDEX
  3112.  
  3113. AUTOEXEC.BAT  35          E key  9
  3114. add  9                    editor  37
  3115. annuity  26               enter line  9
  3116. annuity due  26           equations  51
  3117. auxiliary memory 11       error messages  10, 47
  3118. BCALC  34                 ERRONON  42
  3119. background calculator 34  escape key  12, 36
  3120. backup  5                 Euler's constant  16, 21
  3121. BEEP  40                  exclusive OR  25
  3122. binary  13, 25            exiting  12
  3123. bitwise AND  25           exponent  9
  3124. bitwise OR  25            exponentiation  16
  3125. BOX  41, 42               F key  9
  3126. C key  11                 factorial  20
  3127. CALC  41                  FIN  26
  3128. CALC mode 16              FINDKEY  35
  3129. CALC2  17                       install  34
  3130. D key  12                 intercept  22
  3131. decimal point  9          interest  26
  3132. degrees  13               inverse trig  21
  3133. display  12               invocation key  34
  3134. divide  9                 K key  38, 39
  3135. duplicate  10             keypad  9
  3136.  
  3137.  
  3138.  
  3139.                                      Page 53
  3140.  
  3141.  
  3142.  
  3143.  
  3144.  
  3145.  
  3146.  
  3147.  
  3148.  
  3149.  
  3150.  
  3151.  
  3152.  
  3153.  
  3154.  
  3155.  
  3156.  
  3157.  
  3158.  
  3159.  
  3160.                PC/CALCULATOR                
  3161.  
  3162.  
  3163.  
  3164.                    _____                   INDEX
  3165.  
  3166. L key  38                 S key  11
  3167. learn mode  37            SCREEN  44
  3168. least squares  22         SHELL  44
  3169. LOCATE  43                shift  25
  3170. LPRINT  43                SLEEP  44
  3171. M key  14                 slope  22
  3172. markup  17                SLOW  45
  3173. mean  23                  square root  16
  3174. memories  11              stack  8
  3175. MENU.PCL  37              STATS mode 22
  3176. mouse mode 14             std deviation  22
  3177. multiply  9               STOP  45
  3178. N key  9                  subtract  9
  3179. number range  9           summary  46
  3180. octal  12, 25             swap  10
  3181. output  6                 SYSTEM  45
  3182. P key  13                 T key  13
  3183. payment  26               TAB  45
  3184. percent  17               TRACEOFF  45
  3185. periods  26               TRACEON  45
  3186. permutations  20          trend  22
  3187. present value  26         TRIG mode 21
  3188. PRINT  13, 42, 44         U key  13
  3189. printer  6                un-do  13
  3190. PRN:  6                   unit conversion  33
  3191. PROG  25                  V key  15
  3192. program files 37          variance  22
  3193. Q key  12, 35             Y key  13
  3194. R key  11                 Z key  39
  3195. radians  13
  3196. reciprocal  16
  3197. REM  44
  3198. roll operation 10
  3199. RPN  8
  3200.  
  3201.  
  3202.  
  3203.  
  3204.  
  3205. Page 54                                     
  3206.  
  3207.  
  3208.  
  3209.  
  3210.  
  3211.  
  3212.  
  3213.  
  3214.  
  3215.  
  3216.  
  3217.  
  3218.  
  3219.  
  3220.  
  3221.  
  3222.  
  3223.  
  3224.  
  3225. 45
  3226. permutations  20          trend  22
  3227. present value  26         TRIG mode 21
  3228. PRINT  13, 42, 44         U key  13
  3229. printer  6                un-do  13
  3230. PRN:  6                   unit conversion  33
  3231. PROG  25                  V key  15
  3232. program files 37          variance  22
  3233. Q key  12, 35                      P C / C A L C U L A T O R             Reference Manual              Second Edition              September 1984           (c) Copyright - 1984        Micro Business Applications           1133 Guerrero Street          San Francisco, CA 94110                                      Page 1               PC/CALCULATOR                               _________________               TABLE OF CONTENTSI.   INTRODUCTION                       4     REQUIREMENTS                            4     COPYRIGHT                               4     GETTING STARTED                         5     EXECUTING THE CALCULATOR                6II.  USING THE CALCULATOR               8     REVERSE POLISH NOTATION                 8     ENTERING NUMBERS                        9     FOUR ARITHMETIC FUNCTIONS               9     STACK MANIPULATION                      10     ERRORS                                  10     ARITHMETIC EXAMPLE                      10     AUXILIARY MEMORIES                      11     CLEAR                                   11     HELP                                    11     EXITING THE PROGRAM                     12     DISPLAY AND ENTRY MODES                 12     THE UN-DO KEY                           13     TAPE TRACE AND PRINTING                 13            RADIANS/DEGREES MODE                    13            MOUSE MODE                              14       III. FUNCTION KEY MODES                 15     CALC FUNCTION KEY MODE                  15     CALC2 FUNCTION KEY MODE                 17          Markup Calculations                     17          Markup Calculation Examples             17          Percent Calculations                    18          Delta Percent Example                   18          Sum a List of Numbers Example           19          Combinatorics                           20     TRIG FUNCTION KEY MODE                  20     STATS FUNCTION KEY MODE                 22          29     CONV FUNCTION KEY MODE                  33IV.  BACKGROUND CALCULATOR              34     OVERVIEW                                34     INSTALLING THE BACKGROUND CALCULATOR    34     INVOKING THE BACKGROUND CALCULATOR      35     RUNNING THE BACKGROUND CALCULATOR       36     EXITING THE BACKGROUND CALCULATOR       36V.   PROGRAMMING FEATURES               37     PROGRAM FILES                           37SPECIAL PROGRAMMING KEYS                38     THE L KEY                               38     THE K KEY                               38     THE J KEY                               39     THE Z KEY                               39     PROGRAM INVOCATION FROM DOS             39     PROGRAM COMMANDS                        40VI.  APPENDICES                         45     APPENDIX A - KEY SUMMARY                46     APPENDIX B - ERROR MESSAGES             47     APPENDIX C - FORMULAS                   51     INDEX                                   53                                      Page 3               PC/CALCULATOR                     _______________     I. INTRODUCTION     ____________     REQUIREMENTS         IBM PC, XT, Jr., or compatible         1 Floppy Drive         128KB RAM         DOS 1.0, 1.1, or 2.0     PC/CALCULATOR is a software program      that will turn your IBM PC into a      programmable multi-function RPN      (Reverse Polish Notation) calculator.      It features 16 visible memories, 7      function key modes, and 14 number      display formats. Included is a back-      ground version of the calculator.      Once loaded into your PC, it can be      easily accessed from within another      program.      _________     COPYRIGHT     PC/CALCULATOR may be used on only one      computer at a time. The distribution      diskette may be duplicated for backup      purposes only. Distributing copies of      the programs or documentation is il-      legal. Page 4                                                     PC/CALCULATOR                     _______________     GETTING STARTED     Before you begin using PC/CALCULATOR,      please take the time to duplicate      your distribution diskette either to      a backup floppy or to a hard disk. I      highly recommend that you use this      backup version and keep the distribu-      tion diskette in a safe place.      Copying the diskette with the command          COPY A:*.* B:      is more reliable than DISKCOPY.      If you have some experience with an      RPN calculator, and you can't wait to      read the documentation, enter the com-      mand          CALC      and press return when the copyright      message appears. You can exit the cal-      culator at any time by pressing 'Q'.      If that doesn't work, press 'J' and      then 'Q'. The latter will work even      if you are using the programmable      mode of the calculator. You may also      press 'H' to access a help screen.                                       Page 5               PC/CALCULATOR                     ________________________     EXECUTING THE CALCULATOR     To start the calculator, enter the      command          CALC    [P=PRINT-FILE]             [F=FOREGROUND-COLOR]             [B=BACKGROUND-COLOR]             [K=PROGRAM-FILE-TO-RUN]             [L=PROGRAM-FILE-TO-WRITE] [+U]     The items in brackets are optional.      The P=PRINT-FILE-OPTION is used to      redirect output to either a file or a      device. Some calculator functions      create output which by default goes      to the printer 'PRN:'. To send this      output to either a serial printer or      a file, enter          CALC P=COM1:          or          CALC P=OUTPUT.FLE      The F=FOREGROUND-COLOR and      B=BACKGROUND-COLOR are used to modify      the displayed colors on a color      monitor. The color options are      0 - black 3 - cyan    6 - brown     1 - blue  4 - red     7 - white     2 - green 5 - magenta                These o for 20 func-      tions keys in each of the 7 function      key modes. The name of the function      is displayed on the screen with the      function on top corresponding to the      _________ function key. On most      unshifted                            typewriters, the upper key cor-      responds to the shift key. For those      who wish to switch the use of the      shift and unshift functions keys, use      the +U option.                                       Page 7               PC/CALCULATOR                ________________________II. USING THE CALCULATOR_______________________REVERSE POLISH NOTATIONUsing an RPN calculator will take a little practice, but ultimately you may find it easier to use than an algebraic cal- culator. All RPN calculators use a number stack. This is similar to a tray stack at a cafeteria, which drops down when a tray is placed on top, and which pops up when a tray is removed. The PC/CALCULATOR stack appears on the screen upside down, with the numbers pushing each other up and pop- ping them down. If a number is pushed off the top of the stack, it disappears. Once numbers are pushed onto the stack, they