home *** CD-ROM | disk | FTP | other *** search
/ Hot Shareware 32 / hot34.iso / ficheros / WGRAF / VIN16_95.ZIP / MATH_P.TXT < prev    next >
Text File  |  1998-01-16  |  7KB  |  207 lines

  1. VINNY GRAPHICS MATH SAMPLE PROBLEMS
  2.  
  3. ******************************************************************
  4.  
  5. The following two sample problems illustrate the use of 
  6. Vinny Graphics math operations.  The first problem is at
  7. the introductory level and the second is at the advanced
  8. level.  Words in all capital letters are menu commands.
  9.  
  10. ******************************************************************
  11.  
  12.  
  13. Problem #1 Make an X,Y table from test data.
  14.  
  15. Given:
  16.  Test data:
  17.    X          Y
  18.    4.79       98.312
  19.    5.34       145.23
  20.    6.93       201.67
  21.    8.86       376.81
  22.  
  23. Create an X,Y  table with X going from 4 to 9 
  24. in steps of 0.5. and round Y to 1 place.
  25.  
  26. Solution:
  27. 1- FILE | OPEN | TEXT FILE | math_p.txt
  28.    (This opens this file in the Vinny Graphics text editor)
  29. 2- PREFER | enter Max Data Index of 30. Click OK.
  30.    (Sets length of new data files equal to 30 rows)
  31. 3- FILE | NEW DATA.  WINDOW | TITLE VERT.
  32.    (Opens a new data set and arranges windows)
  33. 4- Drag mouse over above test data
  34.    make sure to include both columns but
  35.    do not include X Y titles.
  36.    (Selects above data for the following copy)
  37. 5- EDIT | COPY.
  38.    (Copies selected data to Windows clipboard)
  39. 6- Click on data set #1 cell [X1, 1]
  40.    (Makes data set #1 active and selects cell [X1, 1])
  41. 7- EDIT | PASTE.
  42.    (Pastes data from Windows clipboard starting in selected cell) 
  43. 8- Right click data set #1 and select FIT.
  44.    (Opens local pop up menu and then opens regression dialog)
  45. 9- Click 2nd Order Polynomial.
  46.    (Does a 2nd Order Polynomial regression of the X,Y data in set #1)
  47. 10- Click OK.
  48.     (Closes regression dialog and completes action)
  49. 11- FILE | NEW DATA.
  50.     (Opens new data set #2)
  51. 12- MATH | FILL CELLS and enter the following values:
  52.      Start Index : 1
  53.      Stop Index  : 11
  54.      Start Value : 4
  55.      Step Value  : .5
  56.     (This sets up user defined sequence) 
  57. 13- Click the Operate button
  58.     (This fills data set #2 X values between index 1 and 11 with the
  59.      user defined sequence.)
  60. 14- Click OK.
  61.     (Closes the Fill Cells dialog)
  62. 15- Click on data set #2 cell [X2, 1] then Drag mouse
  63.     over X2 column data from 4 to 9.
  64.     (Selects X2 data for the following copy)
  65. 16- EDIT | COPY.
  66.     (Copies selected data to Windows clipboard)
  67. 17- Click on data set #1 title and then cell [X1, 5].
  68.     (Selects data set #1 cell [X1, 5] for the following paste)
  69. 18- EDIT | PASTE.
  70.     (Pastes data from Windows clipboard into empty X cells and
  71.     then automatically fills in a corresponding curve fit value for Y) 
  72. 19- Drag mouse over Y1 column data from 94.7... to 389.5...
  73.     (Selects new Y1 data for the following math operation)
  74. 20- MATH | OPERATE on CELLS and select Operation Round(Cell)
  75.     then enter 1 in the Constant K edit box. 
  76.     (Selects Rounds off operation sets up one decimal digit
  77.     Note: The total, average and sigma are displayed for the
  78.     selected group of cells)
  79. 21- Click the Operate button
  80.     (This performs round off of selected cells to one
  81.     decimal place. Note: The Y1 Fit is automatically
  82.     cleared any time the data changes.)
  83. 22- Click OK.
  84.     (Closes the Operate on Cells dialog)
  85.  
  86.  
  87. The data table should look like this:
  88.  
  89. 4    94.7
  90. 4.5    102.9
  91. 5    115.8
  92. 5.5    133.5
  93. 6    155.9
  94. 6.5    183
  95. 7    214.8
  96. 7.5    251.4
  97. 8    292.7
  98. 8.5    338.7
  99. 9    389.5
  100.  
  101. If you would like to see the solution to problem 1 dressed up a bit
  102. open math_p1.gra as follows or you can use GRAPH | AUTO SCALE to add
  103. scales and grids to this file .
  104.  
  105. 23- FILE | OPEN | GRAPH FILE | math_p1.gra. Click OK.  Click Yes. 
  106.     (Opens math problem 1 graph file solution.)
  107.  
  108.  
  109. ******************************************************************
  110.  
  111.  
  112. Problem #2 Integrate the function Y = 4.563*X^1.647 from X=5 to X=95
  113.  
  114. Caution:
  115. This is an advanced problem which demonstrates the use
  116. of Vinny Graphics numerical integration capability. Unless
  117. you are in to this sort of thing I recommend that you
  118. skip it.
  119.  
  120. Note: 
  121. This problem can be solved directly
  122. WITHOUT Vinny Graphics as follows:
  123. The Integral of 4.563*X^1.647 from 5 to 95 =
  124. [(4.563*(95)^2.647)/2.647] - [(4.563*(5)^2.647)/2.647] =
  125. [296040]
  126.  
  127. Vinny Graphics Solution:
  128. 1- WINDOW | CLEAR ALL.
  129.    (This closes all data sets and clears all graph settings)
  130. 2- PREFER | enter Max Data Index of 91. Click OK.
  131.    (Sets length of new data files equal to 91 rows)
  132. 3- FILE | NEW DATA.
  133.    (Opens a new data set)
  134. 4- MATH | FILL CELLS and enter the following values:
  135.      Start Index : 1
  136.      Stop Index  : 91
  137.      Start Value : 5
  138.      Step Value  : 1
  139.    (This sets up user defined sequence)
  140. 5- Click [Operate on] radio button X Column cells and then click Operate.
  141.    (This fills the X column with a series starting at 5 in steps of 1)  
  142. 6- Click [Operate on] radio button Y Column cells and then click Operate.
  143.    (This fills the Y column with a series starting at 5 in steps of 1)
  144. 7- Click OK.
  145.    (Closes the Fill Cells dialog)
  146. 8- MATH | OPERATE on CELLS and select [Operate on] Y Column cells
  147.    then select [Operation] Cell^K
  148.    then enter 1.647 in the Constant K edit box
  149.    (This sets up to raise the Y column values to the 1.647 power)
  150. 9- Click Operate.
  151.    (This raises the Y column values to the 1.647 power)
  152. 10-Select [Operation] Cell*K then enter 4.563 in the Constant K edit box.
  153.    (This sets up to multiply the Y column values by 4.563)
  154. 11- Click Operate.
  155.    (This multiplies the Y column values by 4.563)
  156. 12-Click OK.
  157.    (Closes the Math Operate on Cells dialog)
  158. 13-Right click on the data set #1 and select [Duplicate Data]
  159.    (This creates a duplicate data set to operate on)
  160. 13-MATH | X & Y OPERATIONS select radio button Y = Integral of f(x) dx.
  161.    (This sets up integration)
  162. 14-Click Operate.
  163.    (This sets each Y value to the cumulative area under the old
  164.     Y=f(x) curve.)
  165. 15-Click OK.
  166.    (Closes the X & Y Operations dialog)
  167. 16-Hold the [CTRL] key down and press the [END] key.
  168.    (This moves to the end of the mini spread sheet. The last Y2 value
  169.    [296051] is the numerical integration solution requested)
  170. 17-Right click on data set 2 and select [Select Y Axis | Right] click.
  171.    (This assigns the Y right scale for data set #2)
  172. 18-GRAPH | VIEW
  173.    (This displays the two graphs: data set #1 and data set #2)
  174. 19-Right Click on the graph and select Scale.
  175.    (This opens the scale dialog)
  176. 20-Click Find All button and then revise max min values as follows:
  177.    X Max =100
  178.    X Min = 0
  179.    Y Left Max = 10000
  180.    Y Left Min = 0
  181.    Y Right Max = 500000
  182.    Y Right Min = 0
  183. 21-Click OK
  184.    (This sets the scale values and shows the original function using the
  185.    Y Left axis and the area under it using the Y Right axis verses X)
  186.  
  187. If you would like to see the solution to problem 2 dressed up a bit
  188. open math_p2.gra using step 22 below. You may first want to use
  189. GRAPH | AUTO SCALE on this file to add scales and grids to it.
  190. However since we have used both Y left and Y right axis you need to
  191. decide which one will control the major and minor grids. You can 
  192. use GRAPH | SCALE, auto Y right button, to set up the Y right scale,
  193. ticks and decimal places first and then use the GRAPH | AUTO SCALE
  194. menu item.  The sequence of these two steps is important.
  195.    
  196. 22- FILE | OPEN | GRAPH FILE | math_p2.gra. Click OK.  Click Yes. 
  197.     (Opens math problem 2 graph file solution.)
  198.  
  199.  
  200. ******************************************************************
  201.  
  202.    
  203.  
  204.  
  205.  
  206.  
  207.