Sunday, December 16, 2012

Working with Spreadsheets


Purpose: To get familiar with electronic spreadsheets by using them in some simple applications.


Equipment: Computer with EXCEL software.


Procedure:
1. Your instructor will give you a brief explanation of how a spreadsheet works and show you some
of the basic operations and functions.
2. Turn on the computer and load Excel software by clicking on Start, move the mouse over
Programs them move the mouse over Microsoft Excel and then press the left button.
3. Create a simple spreadsheet that calculates the values of the following function:
f(x) = A sin(Bx + C)
Initially choose values for of A = 5, B = 3 and C = π/3. Place these values at the right side of the
spreadsheet in the region reserved for constants. Put the words amplitude, frequency, and phase
next to each as an explanation for the meaning of each constant. Place column headings for "x"
and "f(x)" near the middle of the spreadsheet, enter a zero in the cell below "x", and enter the
formula shown above in the cell below "f(x)". Be sure to put an equal sign in front of the formula.
Create a column for values of x that run from zero to 10 radians in steps of 0.1 radians. Use the
copy feature to create these x values (Don't enter them all by hand!). Similarly, create in the next
column the corresponding values of f(x) by copying the formula shown above down through the
same number of rows (100 in all).
                                                    the generated first spreadsheet
                                                   in order to put the equation in we had to write
                                                   it as Fx= $G$2*SIN($H$2*C2+$1$2)


 
4. Once the generated data looks reasonable, copy this data onto the clipboard by highlighting the
contents of the two columns and choosing EDIT/COPY from the menu bar. Print out a copy of
your spreadsheet (first 20 rows or so) and also print out the spreadsheet formulas (try CTRL~). Be
sure that your rows and columns are numbered and lettered.
5. Minimize the spreadsheet window and run the Graphical Analysis program by opening the Physics
Apps icon (double click the mouse on the icon) and then double click on the Graphical Analysis
icon. Once the program loads, click on the top of the x column and then choose EDIT/PASTE to
place the data from the clipboard into your graphing program. A graph of the data should appear
in the graph window. Put appropriate labels on the horizontal and vertical axes of the graph.
                                            graphical analysis of the Fx= Asin (Bx+C) data

6. Highlight the portion of the graph you want to analyze and choose ANALYZE/CURVE FIT from
the menu bar to direct the computer to find a function that best fits the data. From the list of
possible functions, give the computer a hint as to what type of function you expect your data to
match. The computer should display a value for A, B, and C that fit the sine curve that you are
plotting. How do these compare with the values that you started with in your spreadsheet? EVERYTHING LINES UP.
 Make
a copy of the data and graph by selecting FILE/PRINT. Include this in your lab report.
                                                        curve fit for the data of Fx= Asin (Bx+C)
7. Repeat the above process for a spreadsheet that calculates the position of a freely falling particle as
a function of time.(IT IS NEGATIVE ACCELERATION BECAUSE IT IS A FREE FALLING) This time your constants should include the acceleration of gravity, the initial
velocity, initial position, and the time increment. Start off with g = 9.8 m/s^2, v0 = 50 m/s, x0 =
1000 m and Δt = 0.2 s. Print out the spreadsheet (calculated results and formula as in part 4).
Again copy the data into the Graphical Analysis program and obtain a graph of position vs time.
Fit this data to a function (y = A + Bx + Cx^2) which closely matches the data. Interpret the
values of A, B, and C. Get a printout of this graph with the data table. Include this printout in
your lab report.
WE USED KINEMATICS POSITION FORMULA TO FIND FINAL POSITION
 Xf=Xi+Vi(delta T)+1/2 a (delta T)^2
                                        spreadsheet for the Y= A+Bx+Cx^2 function and the graph with
                                        curve fit.
Errors: human errors in inputing equations into excel.
Conclusion: we were able to familiarize with excel and learn to input functions correctly thru trial and error and we were also able to practice more by taking this data solving for final position thru kinematic equations and using graphical analysis to plot and curve fit the data. 

No comments:

Post a Comment