home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 September / Simtel20_Sept92.cdr / msdos / plot / grafdemo.arc / HELP.DOC < prev    next >
Text File  |  1989-03-28  |  18KB  |  414 lines

  1.  
  2.                                GraF Version 1.0
  3.            
  4.  
  5.  
  6. GRAPHING BASICS:
  7.                GraF requires a two dimensional data point - a point 
  8.           specified by an X and Y coordinate. Traditionally, X is the 
  9.           controlled variable, and Y is the measured variable.  
  10.                Due to the computers internal number representation, some 
  11.           weird things can happen at very large or very small scales.  
  12.           This can be remedied by scaling your data before entering it 
  13.           into GraF.  
  14.                GraF has the ability to plot many different lines on the 
  15.           same graph.  In addition to your data, the error data can also 
  16.           be plotted.  Data Fitting, Spline, and Calculator can each 
  17.           have one line plotted.  The lines are drawn automatically when 
  18.           you choose a command from their sub-menus, and can be removed 
  19.           from the plot by choosing either Clear or Remove Plot. 
  20.           
  21.  
  22.  
  23. MENUS EXPLAINED
  24.  
  25.                When you run the program, the first thing you will see is 
  26.           an introductory screen.  After hitting any key, the program 
  27.           will display an empty plot on the screen, and produce a pop up 
  28.           menu bar.  
  29.           The Menu options include: 
  30.  
  31.             File/Data   This has everything to do with Editing, Loading, 
  32.                         and Saving the data.  It also lets you change 
  33.                         directories and view text files. 
  34.  
  35.             GraF        This controls all the aspects of plotting your 
  36.                         data, such as how your data is printed. Other 
  37.                         options include Auto-Scaling your data, as well as 
  38.                         changing the scale, sorting your data, and 
  39.                         printing. 
  40.  
  41.             Data Fit    This menu allows you to choose what kind of Data 
  42.                         Fitting to perform, as well as Auto-Scaling the 
  43.                         Fit, and Clearing it from your plots.
  44.  
  45.             Splines     This option allows you to choose the Spline 
  46.                         Interpolation or one of its derivatives, 
  47.                         as well as Auto-Scaling the spline, and Removing 
  48.                         it from your plots. 
  49.  
  50.             Calculator  This will pop up a sub-menu has all the options 
  51.                         dealing with the mathematical expressions you 
  52.                         would type in.  You can evaluate an expression, 
  53.                         as well as Differentiating or Intergrating that 
  54.                         expression at any point.  The plot function 
  55.                         option will graph your function on the screen.  
  56.                         Auto-Scale and Remove plot will scale your 
  57.                         function, or remove it from the plot. 
  58.  
  59.             Quit        Returns you to DOS.
  60.  
  61.                Picking things from the menus is easy.  Just move with the 
  62.           arrow keys until the desired item is highlighted (NumLock must 
  63.           be off), then press <RETURN>. A faster way is to just type the 
  64.           first character of the command choosen.  To return at any time 
  65.           to your graph, just press the <ESC> key.  A help document will 
  66.           appear on the screen when you type <F1>. 
  67.  
  68.  
  69. FILE/DATA
  70.       Edit/Create Data  This command found in the File/Data menu is used 
  71.                         to edit or enter data into the computer. The 
  72.                         commands for operating the Data Editor are found 
  73.                         in the Appendix. 
  74.  
  75.       Load / Save       These two commands will let you save the data 
  76.                         you entered into the diskette, or read it from 
  77.                         the diskette after you've saved it.  When you're 
  78.                         Loading data into the computer, it will let you 
  79.                         pick the name of the file from the Directory 
  80.                         chooser.  The File Selector and File Format 
  81.                         are discussed in the Appendix. 
  82.  
  83.       New/Erase Data
  84.                         New/Erase Data will erase all of the data that 
  85.                         is stored in the computer's memory.  
  86.  
  87.       Directory         Directory will let you examine the files 
  88.                         contained on the specified diskette.  
  89.  
  90.       Change dir        Change dir displays the current drive and 
  91.                         directory, and allows you to change to a 
  92.                         specified drive and/or directory. 
  93.  
  94.       View ASCII File   This routine will let you list ASCII files to 
  95.                         the screen.  The commands it understands are 
  96.                         <UP>, <DOWN>, <PGUP>, <PGDN>, <BEGIN> and <END>.  
  97.                         Press <ESC> will return you to the program. 
  98.  
  99.  
  100. GraF
  101.       Line Types
  102.  
  103.                         Y Data/Hide Y data controls whether lines are 
  104.                         used to connect each data point. 
  105.  
  106.                         Symbols/No Symbols controls whether the box 
  107.                         symbols are placed on every data point. 
  108.  
  109.                         Valid Error Bars/Invalid Error Bars controls the 
  110.                         use of Error Bars on your plot.  
  111.  
  112.                         Error Data/Remove Error Data controls whether 
  113.                         the Error data is also plotted.  This allows you 
  114.                         to display two lines at the same time, but you 
  115.                         have no control over the attributes of the Error 
  116.                         Data Line. 
  117.           
  118.       Auto-Scaling      The program will automatically scale a plot.  
  119.                         Entering this command will scale the data 
  120.                         currently being used.  For instance, Auto-Scaling 
  121.                         in the Calculator menu will automatically scale 
  122.                         the current Calculator Function. 
  123.  
  124.       Changing Scale    This option will let you change the limits of 
  125.                         the plot.  You can also choose to have your data 
  126.                         plotted on a logarithmic scales.  
  127.  
  128.           IMPORTANT     Since logarithms aren't defined for numbers 
  129.                         less than or equal to zero, make sure your data 
  130.                         and plotting limits are all positive numbers 
  131.                         larger than zero. 
  132.  
  133.       Title/Axis Labels This option lets you change your X and Y 
  134.                         axis labels and plot title. 
  135.       Sort X axis.      This option will sort your data into ascending 
  136.                         order. 
  137.       Print Graph       This command will print the plot on the screen 
  138.                         to either a Dot Matrix printer, or a HP Laser 
  139.                         Jet printer.  The Large Dot Matrix printout will 
  140.                         rotate the printout and make it larger.  You can 
  141.                         choose to have the output sent to a file, by 
  142.                         entering the files name, or to the printer by 
  143.                         entering "PRN".  When you want to print the file 
  144.                         that is generated, just type "copy FileName PRN 
  145.                         /b". 
  146.  
  147.  
  148. DATA FITTING
  149.                Each Data Fitting routine prints the formula to the plot 
  150.           in the upper left hand corner, and is followed by the quality 
  151.           factor of the fit. 
  152.  
  153.       Linear Regression This performs standard Linear Regression on your 
  154.                         data.  The regression coefficient is displayed 
  155.                         along with the data. 
  156.       Polynomial Fit    This performs a Least Square Fit with a 
  157.                         polynomial of degree N which you specify.  
  158.       Fourier Fit       This fits the data to Y = A + B*Sin(x) + 
  159.                         C*Cos(x) + ... using the least squares method.  
  160.                         You can enter the number of terms you want in 
  161.                         the fit. 
  162.  
  163.       Exponential       The data is fitted to the form Y = A * exp(B*X) 
  164.                         using the least squares method. 
  165.  
  166.       Power             The data is fitted to the form Y = A * x^(B*X) 
  167.                         using the least squares method. 
  168.  
  169.       Logarithmic       The data is fitted to the form Y = A * ln(B*X) 
  170.                         using the least squares method. 
  171.  
  172.       Derivative        This can be used instead of Fitting your Data, 
  173.                         to compute the change of your data divided by 
  174.                         the change in X. 
  175.  
  176.       Auto-Scale        This command will automatically scale the plot 
  177.                         so that the entire Data Fit will be visible. 
  178.  
  179.       Clear             This function will stop displaying the data fit 
  180.                         text and line plotting. 
  181.  
  182.  
  183. SPLINE
  184.       Interpolation     This routine computes and plots the cubic free 
  185.                         spline of your data.  This spline is then 
  186.                         superimposed on the plot. 
  187.       Differentiation   This routine computes and plots the derivative 
  188.                         of the cubic spline that was created from your 
  189.                         data. 
  190.  
  191.       Second Derivative This routine computes and plots the second 
  192.                         derivative of the spline that interpolates your 
  193.                         data.  
  194.  
  195.       Auto-Scale        This command will automatically scale the plot 
  196.                         so that the entire Spline will be visible. 
  197.  
  198.       Edit/Create       This routine will let you examine and/or change 
  199.                         the Spline data. 
  200.  
  201.       Clear             This function will stop plotting the Spline 
  202.                         data. 
  203.  
  204.  
  205. CALCULATE 
  206.       Expression        This routine will return the numerical value of 
  207.                         a function at any point.  See the Appendix on 
  208.                         the Calculator commands. 
  209.  
  210.       Integrating       This routine computes the Integral of your 
  211.                         function over a interval you specify.  It uses 
  212.                         the Adaptive Simpson method.  If you don't know 
  213.                         what these are, you can find discussions in your 
  214.                         nearest Calculus book. 
  215.  
  216.       Differentiating   This routine computes the Differential of your 
  217.                         function a a specified point.  Information about 
  218.                         this can also be found in your Calculus book. 
  219.  
  220.       Plot Function     This routine will let you enter a function of X 
  221.                         and plot it.  The routine will use the X axis 
  222.                         Limits to choose the input range for the 
  223.                         function. 
  224.  
  225.       Auto-Scale        This command will automatically scale the plot 
  226.                         so that the entire function is visible. 
  227.  
  228.       Edit/Create       This procedure will let you examine and/or 
  229.                         change the function data. 
  230.  
  231.       Clear             This routine will stop plotting the mathematical 
  232.                         function. 
  233.                
  234.  
  235. APPENDIX
  236.                
  237.  
  238.   CALCULATOR
  239.                GraF contains a full functioned scientific calculator.  
  240.           All operations are performed according to Algebraic Rules.  The 
  241.           legal functions include : 
  242.  
  243.  
  244.             Addition (+)                Subtraction (-)   
  245.             Division (/)                Multiplication (*) 
  246.             Factorial (!)               Exponential (exp)
  247.             Natural Log (ln)            X to the Y (^)    
  248.             Logarithms (log)            Square (sqr)       
  249.             Square Rt (sqrt)            Round (round)
  250.             Absolute Value (Abs)        Random Number (RND)
  251.  
  252.           Trigonometric
  253.             Sine (sin)                  Cosine (cos)
  254.             Tangent (tan)               Secant (sec)
  255.             Cosecant (csc)              Cotangent (cot)
  256.             Arcsine (arcsin)            Arccosine (arccos)
  257.             Arctan (arctan)
  258.  
  259.           CHANGING CALCULATOR MODES:  
  260.                  The calculator is in Radian Mode upon startup. Typing 
  261.                  "Deg" instead of a mathematical expression will put it 
  262.                  into Degree Mode.  "Rad" invokes Radian Mode. 
  263.  
  264.           Hyperbolic
  265.             Sine  (sinh)                Cosine (cosh)     
  266.             Tangent (tanh)              Arcsine (arcsinh)  
  267.             Arccosine (arccosh)         Arctanh (arctanh)
  268.  
  269.  
  270.           Constants and Variables:
  271.                The constant "Pi" is defined as 3.1415926...
  272.                The variables X, and Y are understood, but Y is always 
  273.           evaluated as being 0.
  274.  
  275.  
  276.  
  277.   DATA EDITOR
  278.  
  279.                The Data Editor is designed to let you easily input and/or 
  280.           edit data.  It is invoked every time you "Edit/Create" data. 
  281.                The data editor commands include the following:
  282.  
  283.           <UP>          Moves up one line.
  284.           <DOWN>        Moves down one line.
  285.           <PGUP>        Moves up a page.
  286.           <PGDN>        Moves down a page.
  287.           <F1>          Invokes a Help Screen.
  288.           <F5>          Copies the value of the entry that is being 
  289.                         edited to the line numbers you specify.
  290.           <F6>          Copies the values of all the lists of numbers 
  291.                         to the line numbers you specify.
  292.           <F7>          Inserts a Line for Data.
  293.           <F8>          Deletes a Line of Data.
  294.           <F9>,         Moves which list you are editing to the left 
  295.           <TAB>         one position.
  296.           <F10>,        Moves which list you are editing to the right 
  297.           <Shift TAB>   one position.
  298.           <ESC>         Returns to the data plot.
  299.  
  300.  
  301.  
  302.   LINE EDITOR
  303.                Whenever you are asked to input a name, a string, or a 
  304.           number, the following commands are available:
  305.  
  306.           <F1>          Displays a help document.
  307.           <F2>          Change the case of the letter at the cursor.
  308.           <ESC>         Escape and go back.
  309.           <RETURN>      You're done, that's it.
  310.  
  311.           TYPEOVER AND INSERT MODES
  312.           The GraF editor has two basic modes: the typeover mode and the 
  313.           insert mode.  In typeover (normal mode), anything you type 
  314.           will replace the text currently displayed at the cursor.  In 
  315.           insert mode, anything you type will be inserted into the text 
  316.           at the current cursor position, displacing any characters to 
  317.           the right of the cursor.  The <INS> key toggles between 
  318.           typeover and insert modes.  
  319.  
  320.  
  321.  
  322.   CURSOR MOVEMENT KEYS
  323.           GraF uses the following keys for cursor movement:
  324.  
  325.           <HOME>        Moves the cursor to the first position in the line.
  326.           <END>         Moves the cursor to the end position (following 
  327.                         the last character displayed). <LEFT> Moves the 
  328.                         cursor to the left one character.  This does not 
  329.                         erase any characters; it simply moves the 
  330.                         cursor.  Remember that <LEFT> is the left-arrow 
  331.                         key on the numeric keypad (key 4), not the 
  332.                         backspace key (the larger left arrow next to 
  333.                         NumLock). 
  334.  
  335.           <RIGHT>       Moves the cursor to the right one character.
  336.  
  337.           <Ctrl LEFT>   Moves the cursor to the left one word.  A "word" 
  338.                         is any sequence of characters bounded by one or 
  339.                         more spaces; the cursor will be placed on the 
  340.                         first character of the previous "word". 
  341.  
  342.           <Ctrl RIGHT>  Moves the cursor to the right one word; it 
  343.                         will be placed on the first character of the 
  344.                         next word. 
  345.  
  346.  
  347.  
  348.   TEXT DELETION KEYS
  349.           The following GraF editor keys are used to delete text:
  350.  
  351.           <DEL>         Deletes the character at the cursor position.
  352.  
  353.           <BACKSPACE>   Deletes the character to the left of the cursor 
  354.                         position. This is known as a destructive 
  355.                         backspace; it is exactly equivalent to keying 
  356.                         <Left> followed by <Del>. 
  357.  
  358.           <Ctrl END>    Deletes all characters from the cursor position 
  359.                         to end of the command.
  360.  
  361.  
  362.  
  363.   DATA FILE FORMAT
  364.  
  365.                The File format is a simple ASCII format, which can be 
  366.           edited and changed by any text editor.  
  367.  
  368.           The format is:
  369.                Title if the Line is Text.
  370.                X axis Label if the Line is Text.
  371.                Y axis Label if the Line is Text.
  372.                0,0,0
  373.                1,1,0 ...
  374.  
  375.           Spaces and many characters can be used instead of commas as 
  376.           delimiters.
  377.  
  378.  
  379.  
  380.   FILE SELECTOR
  381.                The file selector is designed to make chooseing files 
  382.           easier.  The DOS-style mask allows the user control over what 
  383.           files appear in the selector.  You can load in a specific file 
  384.           by just typing it's name.  After pressing <RETURN>, a box 
  385.           with all of the choices will appear on the screen.
  386.  
  387.           File Selector commands:
  388.           <ESC>         Get out without selecting anything.
  389.           <F1>          Displays a help document.
  390.           <UP>          Moves up one line.
  391.           <DOWN>        Moves down one line.
  392.           <PGUP>        Moves up a sceen.
  393.           <PGDN>        Moves down a sceen.
  394.           <HOME>        Moves to the top.
  395.           <END>         Moves to the bottom.
  396.           <RETURN>      Selects a file or directory.
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.            {C} Copyright 1989 by Dan L. Kunkel. All Rights Reserved.
  411.                                 Dan L. Kunkel
  412.                                 8 Mansfield Ave
  413.                                 Burlington, VT 05401
  414.