home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / plot / grafdemo.arc / GRAF.DOC next >
Text File  |  1989-03-28  |  37KB  |  1,646 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.                                       G r a F
  15.  
  16.                                    USERS MANUAL
  17.  
  18.  
  19.  
  20.                                     Version 1.0
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.                                     Written by
  35.  
  36.                                    Dan L. Kunkel
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.                                   8 Mansfield Ave
  45.  
  46.                                Burlington, VT 05401
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.                             First Edition, January 1989
  55.  
  56.             {C} Copyright 1989 by Dan L. Kunkel.  All Rights Reserved.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.           DISCLAIMER
  73.  
  74.  
  75.           Written by Dan L. Kunkel for the  IBM PC,XT,AT or compatibles using
  76.           DOS 2.0 or later.
  77.  
  78.           GraF, GraFDemo and the accompanying documentation is
  79.           copyrighted by the author.  You may make copies of the demo
  80.           program and documentation files for your own use, and you may
  81.           copy the files for others.  You may not charge for such copies,
  82.           or in any other way sell the program or otherwise attempt to
  83.           make money from it or any modified version of it.
  84.  
  85.           An exception to the above is granted to RECOGNIZED USER'S
  86.           GROUPS, which are hereby authorized to charge a small amount
  87.           (not to exceed $3.00) for media, postage, handling, etc of the
  88.           demo version.
  89.  
  90.           For use by corporations and other institutions, please contact me
  91.           for a site licensing agreement.  The source, customizing,  and
  92.           special licensing are also available upon written request.
  93.           Purchase orders and invoicing are acceptable.
  94.  
  95.           While every precaution has been taken in the preparation of
  96.           this software and manual, Dan L. Kunkel assumes no
  97.           responsibility for errors or omissions.  Neither is any
  98.           liability assumed for damages resulting from the use of the
  99.           information contained in this manual. I do not warrant that
  100.           the documentation is accurate, or that the program operates as
  101.           designed.  I will not be liable for any damages of any kind
  102.           sustained through the use of this program.  By using this
  103.           software, you agree to this.
  104.  
  105.           Your comments, suggestions, and friendly criticisms are welcome.
  106.  
  107.           IBM is a registered trademark of International Business Machines
  108.           Corporation.
  109.  
  110.           HP and HP Laser Jet is a registered trademark of Hewlett
  111.           Packard Corporation.
  112.  
  113.           AT&T and AT&T PC6300 are registered trademarks of American
  114.           Telegraph and Telephone.
  115.  
  116.           EPSON is a registered trademark of Epson America, Inc.
  117.  
  118.           If you are  using GraF Demo and  find it of  value, a copy can be
  119.           purchased for $20.  Makes checks payable in U.S. dollars to Dan
  120.           L. Kunkel.  Thank you.
  121.  
  122.                 {C} Copyright 1989 by Dan L. Kunkel. All Rights Reserved.
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.           PREFACE
  138.                Welcome to GraF.
  139.                GraF is a complete graphing system which will accurately
  140.           plot experimental data as well as mathematical functions.  GraF
  141.           is intended for the those people who need to graph data or
  142.           functions frequently and efficiently.
  143.  
  144.           GraF allows you to do the following:
  145.                Plots graphs with up to 200 data points.
  146.                View Spline Interpolations of your data.
  147.                Take both the first and second derivative of your interpolated
  148.                    data.
  149.                View user specified mathematical expressions.
  150.                Find the Derivative of mathematical expressions.
  151.                Integrate mathematical expressions.
  152.                Performs least squares data modeling to Polynomials,
  153.                    Fourier Series, Exponential, Natural Logarithms, and
  154.                    Power.
  155.                Store and retrieve data from the disk.
  156.  
  157.           Equipment Requirements:
  158.                One of the following:  IBM PC,XT,AT, AT&T PC6300, or any
  159.           IBM compatible that has at least 312 K of Memory.
  160.  
  161.           The following graphic display standards are supported:
  162.                CGA         Graphic Adapter
  163.                EGA         Graphic Adapter
  164.                VGA         Graphic Adapter
  165.                AT&T PC6300 High Resolution Mode Graphics Adapter.
  166.  
  167.           Optional Equipment:
  168.                Hewlett Packard Laser Jet Printer.
  169.                Epson/IBM compatible dot matrix printer.
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.                                   TABLE OF CONTENTS
  205.  
  206.  
  207.  
  208.  
  209.  
  210.                1.  INTRODUCTION ............................ 1
  211.  
  212.  
  213.  
  214.  
  215.  
  216.                2.  PROGRAM OVERVIEW ........................ 2
  217.  
  218.  
  219.  
  220.  
  221.  
  222.                3.  GETTING STARTED ......................... 4
  223.  
  224.  
  225.  
  226.  
  227.  
  228.                4.  TUTORIAL ................................ 6
  229.  
  230.  
  231.  
  232.  
  233.  
  234.                5.  REFERENCE ............................... 10
  235.  
  236.  
  237.  
  238.  
  239.  
  240.                6.  APPENDICES .............................. 16
  241.  
  242.                      Calculator ............................ 16
  243.  
  244.                      Data Editor ........................... 17
  245.  
  246.                      Line Editor ........................... 18
  247.  
  248.                      Data File Format ...................... 20
  249.  
  250.                      File Selector ......................... 21
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.           INTRODUCTION
  271.  
  272.  
  273.  
  274.                GraF Version 1.0 is a user-oriented graphing software
  275.  
  276.           package.  It is intended for the college student, and assumes
  277.  
  278.           the user has very little computer experience.  The pop up
  279.  
  280.           menus make the program very easy to learn and use.
  281.  
  282.                The software is designed to integrate data plotting with
  283.  
  284.           data analysis.  It will perform least squares fit, cubic
  285.  
  286.           spline interpolations, and mathematical calculations of
  287.  
  288.           functions you type in.  Using this program will save you
  289.  
  290.           valuable time when plotting your data, as well as assisting in
  291.  
  292.           the analysis of your data.
  293.  
  294.  
  295.  
  296.           How to use the manual
  297.  
  298.                The manual is intended to familiarize the user with the
  299.  
  300.           operation of the program.  If you're the type of person who
  301.  
  302.           hates to read documentation, try browsing the next section,
  303.  
  304.           then run GraF and experiment with the sample data.  The
  305.  
  306.           tutorial will illustrate most of the functions of the software
  307.  
  308.           in a clear, concise manner.
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.                                  Page 1
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.           PROGRAM OVERVIEW
  337.  
  338.                Along with the standard graphing options provided with
  339.  
  340.           most any graphing program, GraF provides additional support
  341.  
  342.           with spline interpolation, least squares data fitting, and the
  343.  
  344.           plotting of mathematical expressions.
  345.  
  346.                The program has functions which allow you to edit, save
  347.  
  348.           or retrieve your data.  It automatically plots your data to
  349.  
  350.           the screen, and allows you to change the scale, graph title,
  351.  
  352.           and axis labels.  It is also possible for you to control the
  353.  
  354.           existence of data symbols, error bars, and lines connecting
  355.  
  356.           the data points.
  357.  
  358.                The data fitting section performs a "Least Squares" or
  359.  
  360.           best fit of your data to a simple mathematical expression.
  361.  
  362.           The mathematical forms include:  Fourier (Sines, Cosines),
  363.  
  364.           Polynomial (a * x^2 + b * x + c), Exponential ( a*exp(b*x) ),
  365.  
  366.           Power (a*x^b) or Logarithmic (a * ln(b*x)).  The coefficients
  367.  
  368.           will appear on the plot along with the "Standard Deviation" or
  369.  
  370.           quality of the fit.
  371.  
  372.                Cubic splines are also included in the software.  A
  373.  
  374.           spline is a "smooth curve" which goes through all of your data
  375.  
  376.           points.  Included in this section is the ability to see the
  377.  
  378.           "Derivative" or slope of the spline (the rate of change of the
  379.  
  380.           spline), and the "Second Derivative" which the rate at which the
  381.  
  382.           derivative is changing.
  383.  
  384.                Finally, the program will allow you to specify a
  385.  
  386.           mathematical expression such as "-3 * x^2 + 0.23 * x + 12" and
  387.  
  388.           will it compute the value of the function at any x value.  The
  389.  
  390.                                 Page 2
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.           program can also perform calculus manipulations with your
  401.  
  402.           function such as Differentiation and Integration using
  403.  
  404.           numerical methods.  GraF will also plot mathematical
  405.  
  406.           expression along with your data simultaneously.
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.                                 Page 3
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.           GETTING STARTED
  469.  
  470.  
  471.  
  472.           What You Need to Get Started
  473.  
  474.  
  475.  
  476.                - Any IBM PC, XT, AT or IBM true compatible computer.
  477.  
  478.                - Must have at least 312K of random access memory (RAM).
  479.  
  480.                - At least one 360K Disk Drive.
  481.  
  482.                - A CGA, EGA, VGA or AT&T graphics monitor.
  483.  
  484.                    Invoke AT&T high resolution Graphics by including /a
  485.  
  486.                    after the name of the program.  Example "graf /a".
  487.  
  488.                - The GraF Software Diskette.
  489.  
  490.  
  491.  
  492.           Optional Equipment
  493.  
  494.  
  495.  
  496.                - A parallel or serial serial printer that is either
  497.  
  498.           Epson/IBM compatible, or a HP LaserJet.
  499.  
  500.  
  501.  
  502.                You will also need one 5 1/4-inch, double density floppy
  503.  
  504.           diskette to make a working copy of GraF.  Refer to your DOS
  505.  
  506.           manual if you have any questions about formating a diskette.
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.                                  Page 4
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.           Preparing a Working Copy
  535.  
  536.                Before you start the GraF tutorial, you must first
  537.  
  538.           complete some preparatory steps.
  539.  
  540.                The first step is to make a working copy of the original
  541.  
  542.           GraF program diskette that came with this manual.  The working
  543.  
  544.           copy  diskette should be the one you use at all times.  The
  545.  
  546.           original should be put away to protect it from being damaged
  547.  
  548.           or destroyed.
  549.  
  550.            Here's how:
  551.  
  552.              Step 1 : Turn on your computer, and place your DOS diskette
  553.  
  554.                       in the Drive labeled A:.  Enter the correct time
  555.  
  556.                       and date.
  557.  
  558.              Step 2 : Put your new Diskette in Drive B:, and format with
  559.  
  560.                       the system.  - See your DOS manual's section on
  561.  
  562.                       formating a diskette if you need assistance.
  563.  
  564.              Step 3 : Take out the DOS disk, and replace it with the
  565.  
  566.                       GraF program diskette.
  567.  
  568.              Step 4 : Type "copy a:*.* b:" and press <RETURN>.
  569.  
  570.              Step 5 : Put the GraF program disk in a safe place.
  571.  
  572.  
  573.  
  574.                You may repeat this process any time you need additional
  575.  
  576.           working copies.
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.                                  Page 5
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600.           TUTORIAL
  601.  
  602.  
  603.  
  604.                This section of the GraF manual provides step by step
  605.  
  606.           instructions to help you understand and operate GraF.
  607.  
  608.  
  609.  
  610.           Loading the program.
  611.  
  612.                If the computer is off, insert the working copy of GraF in
  613.  
  614.           Drive A and turn on the computer.  Then, enter the time and
  615.  
  616.           date, pressing <RETURN> after each.  The A> prompt will appear
  617.  
  618.           on the screen.
  619.  
  620.                If you are using an AT&T PC6300 type:
  621.  
  622.                      A>graf /a  and press <RETURN> to utilize its high
  623.  
  624.                                 resolution monitor.
  625.  
  626.                Otherwise type:
  627.  
  628.                      A>graf     and press <RETURN>.
  629.  
  630.  
  631.  
  632.                After several seconds the Title and Copyright screen will
  633.  
  634.           appear.  Hit any key to continue with the tutorial.
  635.  
  636.  
  637.  
  638.           To Quit:
  639.  
  640.                Use the <LEFT> and <RIGHT> arrow keys to select "Quit" on
  641.  
  642.           the menu bar on the top of the screen, and press <RETURN>.
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.                                  Page 6
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.           Creating Your First Plot:
  667.  
  668.  
  669.  
  670.                After the Title and Copyright message disappears, the
  671.  
  672.           program will display an empty plot and menu bar. You can
  673.  
  674.           select a menu option by pressing the <LEFT> and <RIGHT> arrow
  675.  
  676.           keys (Number 4 and 6 on the Numeric keypad).
  677.  
  678.                Move to "File/Data" and press <RETURN>. Another menu will
  679.  
  680.           appear below the menu bar. Select the top entry "Edit/Create
  681.  
  682.           Data" using the <UP> and <DOWN> keys and press <RETURN>. A
  683.  
  684.           screen containing titles and lists of numbers will appear. Use
  685.  
  686.           the instruction box in the upper right corner. REMEMBER to use
  687.  
  688.           the <F9> and <F10> or <TAB> and <Shift TAB> keys when moving
  689.  
  690.           from one column of numbers to the next.
  691.  
  692.                Position the cursor for each item and type in the
  693.  
  694.           following data:
  695.  
  696.  
  697.                             X axis           Y axis
  698.                             0.664            0.1
  699.                             1.08             0.25
  700.                             1.44             0.3
  701.                             1.80             0.45
  702.                             2.37             0.5
  703.  
  704.                Pressing <ESC> will abort editing, and plot the data you just
  705.  
  706.           entered.
  707.  
  708.                Let's save the data.  Hit a key to make the menu bar
  709.  
  710.           appear, then press <RETURN> to bring up the "File/Data" menu.
  711.  
  712.           Move down to "Save Data" by pressing the <DOWN> arrow key
  713.  
  714.           several times, and press <RETURN> again.  When the program
  715.  
  716.           prompts for a name, type "MYFIRST.DAT" and press <RETURN>.
  717.  
  718.                Now we want to change the X axis scale so it starts from
  719.  
  720.                                  Page 7
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.           Zero, and ends at 2.5.  Hit a key to make the menu bar pop up,
  731.  
  732.           then move to "GraF" and press <RETURN>.  Move down to "Change
  733.  
  734.           Scale", and type <RETURN>.  Enter "0" <RETURN> to make the X
  735.  
  736.           axis lower limit zero.  Move down to X axis upper limit, and
  737.  
  738.           type "2.5" <RETURN>.  Now press <ESC> to see the new plot
  739.  
  740.           displayed.
  741.  
  742.                In order to change the Title and Axis Labels, you must
  743.  
  744.           first go to that command under "GraF".  Change the Title by
  745.  
  746.           typing "Spring Constant", <RETURN>.  Then change the X axis to
  747.  
  748.           "Time^2 (sec^2)", and the Y axis to "Mass (Kg)".  Press <ESC>
  749.  
  750.           to quit editing, and see the new lables.
  751.  
  752.                Let's perform Linear Regression on the data.  Go to "Data
  753.  
  754.           Fitting", and pick "Linear Regression" from the menu.  A
  755.  
  756.           straight line will appear adjacent to the line that is
  757.  
  758.           connecting the data points.  The equation of the straight line
  759.  
  760.           can be found in the upper left corner of the plot with the
  761.  
  762.           Regression Coefficient of the fit written just below that.
  763.  
  764.                Sometimes lines connecting the Y data points are
  765.  
  766.           confusing, so let's just have the computer plot symbols at
  767.  
  768.           each of the data points.  Go to "GraF", "Line Type", and pick
  769.  
  770.           "Hide Y Data" from the menu that appears on the screen.
  771.  
  772.           Notice that your data disappeared; don't worry, it's still in
  773.  
  774.           the computer.  Now pick "Symbols" to see your data points
  775.  
  776.           plotted with boxes.  <ESC> or "Exit" will make the menu box
  777.  
  778.           disappear.
  779.  
  780.                Let's interpolate your data by moving into the Spline
  781.  
  782.           menu and choosing "Interpolate".  A smooth curve, also known
  783.  
  784.           as a cubic spline will go through all of your data points.
  785.  
  786.                                  Page 8
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.                We can examine the difference between your data and the
  797.  
  798.           equation "Y = x^(5/4)/4+0.1" by using the "Calculator".  Pick
  799.  
  800.           Calculator, Plot Function, and type in "X^(4/5) / 4" and
  801.  
  802.           press <RETURN>.  After a moment a plot of the function will
  803.  
  804.           appear.  Now you can visually compare your data to the
  805.  
  806.           function.
  807.  
  808.                If you have a printer connected, now is the time to turn
  809.  
  810.           it on and correctly position the paper.  Choose GraF, Print,
  811.  
  812.           and select the type of printer output, and press <RETURN>.
  813.  
  814.           The computer will think for a short time, and then start
  815.  
  816.           printing your plot.
  817.  
  818.                When you're all done, pick "Quit" from the menu bar.  If your
  819.  
  820.           data has been changed, the computer will ask if you want to save
  821.  
  822.           it to the disk before quitting.  That's all there is to it.
  823.  
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.                                  Page 9
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.           REFERENCE
  865.  
  866.  
  867.  
  868.                This section will help you understand all of GraF's many
  869.  
  870.           capabilities.
  871.  
  872.  
  873.  
  874.           GRAPHING BASICS:
  875.  
  876.                GraF requires a two dimensional data point - a point
  877.  
  878.           specified by an X and Y coordinate. Traditionally, X is the
  879.  
  880.           controlled variable, and Y is the measured variable.
  881.  
  882.                Due to the computers internal number representation, some
  883.  
  884.           weird things can happen at very large or very small scales.
  885.  
  886.           This can be remedied by scaling your data before entering it
  887.  
  888.           into GraF.
  889.  
  890.                GraF has the ability to plot many different lines on the
  891.  
  892.           same graph.  In addition to your data, the error data can also
  893.  
  894.           be plotted.  Data Fitting, Spline, and Calculator can each
  895.  
  896.           have one line plotted.  The lines are drawn automatically when
  897.  
  898.           you choose a command from their sub-menus, and can be removed
  899.  
  900.           from the plot by choosing either Clear or Remove Plot.
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908.  
  909.  
  910.  
  911.  
  912.  
  913.  
  914.  
  915.  
  916.  
  917.  
  918.                                Page 10
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930.           MENUS EXPLAINED
  931.  
  932.  
  933.  
  934.                When you run the program, the first thing you will see is
  935.  
  936.           an introductory screen.  After hitting any key, the program
  937.  
  938.           will display an empty plot on the screen, and produce a pop up
  939.  
  940.           menu bar.
  941.  
  942.           The Menu options include:
  943.  
  944.             File/Data   This has everything to do with Editing, Loading,
  945.                         and Saving the data.  It also lets you change
  946.                         directories and view text files.
  947.  
  948.             GraF        This controls all the aspects of plotting your
  949.                         data, such as how your data is printed. Other
  950.                         options include Auto-Scaling your data, as well as
  951.                         changing the scale, sorting your data, and
  952.                         printing.
  953.  
  954.             Data Fit    This menu allows you to choose what kind of Data
  955.                         Fitting to perform, as well as Auto-Scaling the
  956.                         Fit, and Clearing it from your plots.
  957.  
  958.             Splines     This option allows you to choose the Spline
  959.                         Interpolation or one of its derivatives,
  960.                         as well as Auto-Scaling the spline, and Removing
  961.                         it from your plots.
  962.  
  963.             Calculator  This will pop up a sub-menu has all the options
  964.                         dealing with the mathematical expressions you
  965.                         would type in.  You can evaluate an expression,
  966.                         as well as Differentiating or Intergrating that
  967.                         expression at any point.  The plot function
  968.                         option will graph your function on the screen.
  969.                         Auto-Scale and Remove plot will scale your
  970.                         function, or remove it from the plot.
  971.  
  972.             Quit        Returns you to DOS.
  973.                Picking things from the menus is easy.  Just move with the
  974.  
  975.           arrow keys until the desired item is highlighted (NumLock must
  976.  
  977.           be off), then press <RETURN>. A faster way is to just type the
  978.  
  979.           first character of the command choosen.  To return at any time
  980.  
  981.           to your graph, just press the <ESC> key.  A help document will
  982.  
  983.           appear on the screen when you type <F1>.
  984.                                 Page 11
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.       FILE/DATA
  997.       Edit/Create Data  This command found in the File/Data menu is used
  998.                         to edit or enter data into the computer. The
  999.                         commands for operating the Data Editor are found
  1000.                         in the Appendix.
  1001.  
  1002.       Load / Save       These two commands will let you save the data
  1003.                         you entered into the diskette, or read it from
  1004.                         the diskette after you've saved it.  When you're
  1005.                         Loading data into the computer, it will let you
  1006.                         pick the name of the file from the Directory
  1007.                         chooser.  The File Selector and File Format
  1008.                         are discussed in the Appendix.
  1009.  
  1010.       New/Erase Data
  1011.                         New/Erase Data will erase all of the data that
  1012.                         is stored in the computer's memory.
  1013.  
  1014.       Directory         Directory will let you examine the files
  1015.                         contained on the specified diskette.
  1016.  
  1017.       Change dir        Change dir displays the current drive and
  1018.                         directory, and allows you to change to a
  1019.                         specified drive and/or directory.
  1020.  
  1021.       View ASCII File   This routine will let you list ASCII files to
  1022.                         the screen.  The commands it understands are
  1023.                         <UP>, <DOWN>, <PGUP>, <PGDN>, <BEGIN> and <END>.
  1024.                         Press <ESC> will return you to the program.
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.                                 Page 12
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.       GraF
  1062.       Line Types
  1063.  
  1064.                         Y Data/Hide Y data controls whether lines are
  1065.                         used to connect each data point.
  1066.  
  1067.                         Symbols/No Symbols controls whether the box
  1068.                         symbols are placed on every data point.
  1069.  
  1070.                         Valid Error Bars/Invalid Error Bars controls the
  1071.                         use of Error Bars on your plot.
  1072.  
  1073.                         Error Data/Remove Error Data controls whether
  1074.                         the Error data is also plotted.  This allows you
  1075.                         to display two lines at the same time, but you
  1076.                         have no control over the attributes of the Error
  1077.                         Data Line.
  1078.  
  1079.       Auto-Scaling      The program will automatically scale a plot.
  1080.                         Entering this command will scale the data
  1081.                         currently being used.  For instance, Auto-Scaling
  1082.                         in the Calculator menu will automatically scale
  1083.                         the current Calculator Function.
  1084.  
  1085.       Changing Scale    This option will let you change the limits of
  1086.                         the plot.  You can also choose to have your data
  1087.                         plotted on a logarithmic scales.
  1088.  
  1089.           IMPORTANT     Since logarithms aren't defined for numbers
  1090.                         less than or equal to zero, make sure your data
  1091.                         and plotting limits are all positive numbers
  1092.                         larger than zero.
  1093.  
  1094.       Title/Axis Labels This option lets you change your X and Y
  1095.                         axis labels and plot title.
  1096.       Sort X axis.      This option will sort your data into ascending
  1097.                         order.
  1098.       Print Graph       This command will print the plot on the screen
  1099.                         to either a Dot Matrix printer, or a HP Laser
  1100.                         Jet printer.  The Large Dot Matrix printout will
  1101.                         rotate the printout and make it larger.  You can
  1102.                         choose to have the output sent to a file, by
  1103.                         entering the files name, or to the printer by
  1104.                         entering "PRN".  When you want to print the file
  1105.                         that is generated, just type "copy FileName PRN
  1106.                         /b".
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.                                 Page 13
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.       DATA FITTING
  1128.                Each Data Fitting routine prints the formula to the plot
  1129.           in the upper left hand corner, and is followed by the quality
  1130.           factor of the fit.
  1131.  
  1132.       Linear Regression This performs standard Linear Regression on your
  1133.                         data.  The regression coefficient is displayed
  1134.                         along with the data.
  1135.       Polynomial Fit    This performs a Least Square Fit with a
  1136.                         polynomial of degree N which you specify.
  1137.       Fourier Fit       This fits the data to Y = A + B*Sin(x) +
  1138.                         C*Cos(x) + ... using the least squares method.
  1139.                         You can enter the number of terms you want in
  1140.                         the fit.
  1141.  
  1142.       Exponential       The data is fitted to the form Y = A * exp(B*X)
  1143.                         using the least squares method.
  1144.  
  1145.       Power             The data is fitted to the form Y = A * x^(B*X)
  1146.                         using the least squares method.
  1147.  
  1148.       Logarithmic       The data is fitted to the form Y = A * ln(B*X)
  1149.                         using the least squares method.
  1150.  
  1151.       Derivative        This can be used instead of Fitting your Data,
  1152.                         to compute the change of your data divided by
  1153.                         the change in X.
  1154.  
  1155.       Auto-Scale        This command will automatically scale the plot
  1156.                         so that the entire Data Fit will be visible.
  1157.  
  1158.       Clear             This function will stop displaying the data fit
  1159.                         text and line plotting.
  1160.  
  1161.       SPLINE
  1162.       Interpolation     This routine computes and plots the cubic free
  1163.                         spline of your data.  This spline is then
  1164.                         superimposed on the plot.
  1165.       Differentiation   This routine computes and plots the derivative
  1166.                         of the cubic spline that was created from your
  1167.                         data.
  1168.  
  1169.       Second Derivative This routine computes and plots the second
  1170.                         derivative of the spline that interpolates your
  1171.                         data.
  1172.  
  1173.       Auto-Scale        This command will automatically scale the plot
  1174.                         so that the entire Spline will be visible.
  1175.  
  1176.       Edit/Create       This routine will let you examine and/or change
  1177.                         the Spline data.
  1178.  
  1179.       Clear             This function will stop plotting the Spline
  1180.                         data.
  1181.  
  1182.                                 Page 14
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.       CALCULATE
  1194.       Expression        This routine will return the numerical value of
  1195.                         a function at any point.  See the Appendix on
  1196.                         the Calculator commands.
  1197.  
  1198.       Integrating       This routine computes the Integral of your
  1199.                         function over a interval you specify.  It uses
  1200.                         the Adaptive Simpson method.  If you don't know
  1201.                         what these are, you can find discussions in your
  1202.                         nearest Calculus book.
  1203.  
  1204.       Differentiating   This routine computes the Differential of your
  1205.                         function a a specified point.  Information about
  1206.                         this can also be found in your Calculus book.
  1207.  
  1208.       Plot Function     This routine will let you enter a function of X
  1209.                         and plot it.  The routine will use the X axis
  1210.                         Limits to choose the input range for the
  1211.                         function.
  1212.  
  1213.       Auto-Scale        This command will automatically scale the plot
  1214.                         so that the entire function is visible.
  1215.  
  1216.       Edit/Create       This procedure will let you examine and/or
  1217.                         change the function data.
  1218.  
  1219.       Clear             This routine will stop plotting the mathematical
  1220.                         function.
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.                                 Page 15
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.                                       APPENDIX
  1261.  
  1262.  
  1263.  
  1264.           CALCULATOR
  1265.  
  1266.  
  1267.  
  1268.                GraF contains a full functioned scientific calculator.
  1269.  
  1270.           All operations are performed according to Algebraic Rules.  The
  1271.  
  1272.           legal functions include :
  1273.  
  1274.  
  1275.  
  1276.             Addition (+)                Subtraction (-)
  1277.             Division (/)                Multiplication (*)
  1278.             Factorial (!)               Exponential (exp)
  1279.             Natural Log (ln)            X to the Y (^)
  1280.             Logarithms (log)            Square (sqr)
  1281.             Square Rt (sqrt)            Round (round)
  1282.             Absolute Value (Abs)        Random Number (RND)
  1283.  
  1284.           Trigonometric
  1285.             Sine (sin)                  Cosine (cos)
  1286.             Tangent (tan)               Secant (sec)
  1287.             Cosecant (csc)              Cotangent (cot)
  1288.             Arcsine (arcsin)            Arccosine (arccos)
  1289.             Arctan (arctan)
  1290.  
  1291.           CHANGING CALCULATOR MODES:
  1292.                  The calculator is in Radian Mode upon startup. Typing
  1293.                  "Deg" instead of a mathematical expression will put it
  1294.                  into Degree Mode.  "Rad" invokes Radian Mode.
  1295.  
  1296.           Hyperbolic
  1297.             Sine  (sinh)                Cosine (cosh)
  1298.             Tangent (tanh)              Arcsine (arcsinh)
  1299.             Arccosine (arccosh)         Arctanh (arctanh)
  1300.  
  1301.           Constants and Variables:
  1302.  
  1303.                The constant "Pi" is defined as 3.1415926...
  1304.  
  1305.                The variables X, and Y are understood, but Y is always
  1306.  
  1307.           evaluated as being 0.
  1308.  
  1309.  
  1310.  
  1311.  
  1312.  
  1313.  
  1314.                                 Page 16
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326.           DATA EDITOR
  1327.  
  1328.  
  1329.  
  1330.                The Data Editor is designed to let you easily input and/or
  1331.  
  1332.           edit data.  It is invoked every time you "Edit/Create" data.
  1333.  
  1334.                The data editor commands include the following:
  1335.  
  1336.  
  1337.  
  1338.           <UP>          Moves up one line.
  1339.  
  1340.           <DOWN>        Moves down one line.
  1341.  
  1342.           <PGUP>        Moves up a page.
  1343.  
  1344.           <PGDN>        Moves down a page.
  1345.  
  1346.           <F1>          Invokes a Help Screen.
  1347.  
  1348.           <F5>          Copies the value of the entry that is being
  1349.  
  1350.                         edited to the line numbers you specify.
  1351.  
  1352.           <F6>          Copies the values of all the lists of numbers
  1353.  
  1354.                         to the line numbers you specify.
  1355.  
  1356.           <F7>          Inserts a Line for Data.
  1357.  
  1358.           <F8>          Deletes a Line of Data.
  1359.  
  1360.           <F9>,         Moves which list you are editing to the left
  1361.  
  1362.           <TAB>         one position.
  1363.  
  1364.           <F10>,        Moves which list you are editing to the right
  1365.  
  1366.           <Shift TAB>   one position.
  1367.  
  1368.           <ESC>         Returns to the data plot.
  1369.  
  1370.  
  1371.  
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.                               Page 17
  1381.  
  1382.  
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.           LINE EDITOR
  1393.  
  1394.                Whenever you are asked to input a name, a string, or a
  1395.  
  1396.           number, the following commands are available:
  1397.  
  1398.  
  1399.  
  1400.           <F1>          Displays a help document.
  1401.  
  1402.           <F2>          Change the case of the letter at the cursor.
  1403.  
  1404.           <ESC>         Escape and go back.
  1405.  
  1406.           <RETURN>      You're done, that's it.
  1407.  
  1408.  
  1409.  
  1410.           TYPEOVER AND INSERT MODES
  1411.  
  1412.           The GraF editor has two basic modes: the typeover mode and the
  1413.  
  1414.           insert mode.  In typeover (normal mode), anything you type
  1415.  
  1416.           will replace the text currently displayed at the cursor.  In
  1417.  
  1418.           insert mode, anything you type will be inserted into the text
  1419.  
  1420.           at the current cursor position, displacing any characters to
  1421.  
  1422.           the right of the cursor.  The <INS> key toggles between
  1423.  
  1424.           typeover and insert modes.
  1425.  
  1426.  
  1427.  
  1428.           CURSOR MOVEMENT KEYS
  1429.  
  1430.           GraF uses the following keys for cursor movement:
  1431.  
  1432.  
  1433.  
  1434.           <HOME>        Moves the cursor to the first position in the line.
  1435.  
  1436.           <END>         Moves the cursor to the end position (following
  1437.  
  1438.                         the last character displayed). <LEFT> Moves the
  1439.  
  1440.                         cursor to the left one character.  This does not
  1441.  
  1442.                         erase any characters; it simply moves the
  1443.  
  1444.                         cursor.  Remember that <LEFT> is the left-arrow
  1445.  
  1446.                                 Page 18
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.                         key on the numeric keypad (key 4), not the
  1457.  
  1458.                         backspace key (the larger left arrow next to
  1459.  
  1460.                         NumLock).
  1461.  
  1462.  
  1463.  
  1464.           <RIGHT>       Moves the cursor to the right one character.
  1465.  
  1466.  
  1467.  
  1468.           <Ctrl LEFT>   Moves the cursor to the left one word.  A "word"
  1469.  
  1470.                         is any sequence of characters bounded by one or
  1471.  
  1472.                         more spaces; the cursor will be placed on the
  1473.  
  1474.                         first character of the previous "word".
  1475.  
  1476.  
  1477.  
  1478.           <Ctrl RIGHT>  Moves the cursor to the right one word; it
  1479.  
  1480.                         will be placed on the first character of the
  1481.  
  1482.                         next word.
  1483.  
  1484.  
  1485.  
  1486.           TEXT DELETION KEYS
  1487.  
  1488.           The following GraF editor keys are used to delete text:
  1489.  
  1490.  
  1491.  
  1492.           <DEL>         Deletes the character at the cursor position.
  1493.  
  1494.  
  1495.  
  1496.           <BACKSPACE>   Deletes the character to the left of the cursor
  1497.  
  1498.                         position. This is known as a destructive
  1499.  
  1500.                         backspace; it is exactly equivalent to keying
  1501.  
  1502.                         <Left> followed by <Del>.
  1503.  
  1504.  
  1505.  
  1506.           <Ctrl END>    Deletes all characters from the cursor position
  1507.  
  1508.                         to end of the command.
  1509.  
  1510.  
  1511.  
  1512.                                 Page 19
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524.           DATA FILE FORMAT
  1525.  
  1526.  
  1527.  
  1528.                The File format is a simple ASCII format, which can be
  1529.  
  1530.           edited and changed by any text editor.
  1531.  
  1532.  
  1533.  
  1534.           The format is:
  1535.  
  1536.                Title if the Line is Text.
  1537.  
  1538.                X axis Label if the Line is Text.
  1539.  
  1540.                Y axis Label if the Line is Text.
  1541.  
  1542.                0,0,0
  1543.  
  1544.                1,1,0 ...
  1545.  
  1546.  
  1547.  
  1548.           Spaces and many characters can be used instead of commas as
  1549.  
  1550.           delimiters.
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.  
  1565.  
  1566.  
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.                                 Page 20
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.           FILE SELECTOR
  1591.  
  1592.                The file selector is designed to make chooseing files
  1593.  
  1594.           easier.  The DOS-style mask allows the user control over what
  1595.  
  1596.           files appear in the selector.  You can load in a specific file
  1597.  
  1598.           by just typing it's name.  After pressing <RETURN>, a box
  1599.  
  1600.           with all of the choices will appear on the screen.
  1601.  
  1602.  
  1603.  
  1604.           File Selector commands:
  1605.  
  1606.           <ESC>         Get out without selecting anything.
  1607.  
  1608.           <F1>          Displays a help document.
  1609.  
  1610.           <UP>          Moves up one line.
  1611.  
  1612.           <DOWN>        Moves down one line.
  1613.  
  1614.           <PGUP>        Moves up a sceen.
  1615.  
  1616.           <PGDN>        Moves down a sceen.
  1617.  
  1618.           <HOME>        Moves to the top.
  1619.  
  1620.           <END>         Moves to the bottom.
  1621.  
  1622.           <RETURN>      Selects a file or directory.
  1623.  
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629.  
  1630.  
  1631.  
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.                                 Page 21
  1645.  
  1646.