# Differences

This shows you the differences between two versions of the page.

phy123summer:lab_1 [2010/06/04 07:32]
mdawber
phy123summer:lab_1 [2010/06/06 17:15] (current)
mdawber
Line 1: Line 1:
====== PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum ====== ====== PHY 123 Lab 1 - Error and Uncertainty and the Simple Pendulum ======
-I hope that this material works on everyone'​s machines. If you have a problem, please try the following troubleshooting steps.

-  -Use a decent browser, try either [[http://​www.mozilla.com/​firefox/​|Mozilla Firefox]] or [[http://​www.google.com/​chrome|Google Chrome]].  +**ImportantYou need to print out and bring to lab the 1 page worksheet ​you find by clicking ​[[http://mini.physics.sunysb.edu/​~mdawber/phy123summerworksheet1.pdf|here]]**
-  -Make sure that you have both [[http://​www.java.com/​en/​|Java]] ​and [[http://​get.adobe.com/​flashplayer/​|Flash]] installed. +
-  -If you still have trouble then try the [[http://www.ic.sunysb.edu/​Class/phy122ps/​labs/​dokuwiki/​pdfs/​phy123lab1.pdf|.pdf]] version (videos and plotting won't work, but you can read/print the rest). ​+

+
+

Line 310: Line 310:
$\Delta T = \Large \frac{\Delta (10T)}{10}=\frac{0.28}{10}= \normalsize 0.028$ s $\Delta T = \Large \frac{\Delta (10T)}{10}=\frac{0.28}{10}= \normalsize 0.028$ s

-So you can see it was a good idea to measure several periods instead of one, we get a much more accurate result. Maybe you'd like to think about why we don't measure 100 oscillations (and because you'd get bored is only part of the answer!).+So you can see it was a good idea to measure several periods instead of one, we get a much more accurate result. Maybe you'd like to think about why we don't measure 100 oscillations (and because you'd get bored is only part of the answer!)..

How accurately do you think you can press the button, is an 0.2 seconds and overestimate or underestimate for your reaction time? If you think that the accuracy of your button press is different to 0.2 seconds you should work out what you think $\Delta T$ is if you make a measurement of 10 oscillations. How accurately do you think you can press the button, is an 0.2 seconds and overestimate or underestimate for your reaction time? If you think that the accuracy of your button press is different to 0.2 seconds you should work out what you think $\Delta T$ is if you make a measurement of 10 oscillations.
+
+==== The effect of angle on the period of oscillation ====
+
+We mentioned above that the equation we want to test is only valid for small angles. The first measurement we will make is to measure the period of oscillation for 3 angles of release.
+
+Choose three angles at ~15<​sup>​o</​sup>,​~30<​sup>​o</​sup>​ and ~80<​sup>​o</​sup> ​ and measure the time for 10 periods for each angle. Enter your data into the table on your worksheet. You measure the time using the computer as a simple timer: Double click the Timer Program Icon. The Timer Program comes up. It has a “Start” “Stop” toggle button.
+
+Taking into account your estimate for the error in T above are the periods the same for all 3 angles. Note that experimentally two measurements are considered to be the same if their is an overlap of their range taking into account the error of their measurement. e.g 15+/-1 is equal within error to 16+/-1, 13+/-1 is not.
+

==== Taking data ==== ==== Taking data ====
Line 355: Line 364:
{{lab1plotfig.png}} {{lab1plotfig.png}}

-The data is clearly quite linear when plotted like this, so it gives us an indication that our formula at the least has the right form. (Maybe you would like to try plotting $L$ directly against $T$ and see what looks like). Notice that you can't see the y error bars because they are very small. The program has fitted the data using a least-squares fitting approach. This means that it has calculated for each data point the square of the difference between the data point and the line. It then adds up all these "​squares"​ and uses this number to determine how good the fit is. The computer tries to find the line that gives the smallest sum of squares and calls this the line of best fit. It's drawn this on the graph and called it "​y=a*x"​. It's also given you the value of a and its estimate for the uncertainty in a. The value the program gives for the error in a is often fairly small, it relies mostly on the scatter in a and only uses the errors you enter to weight the points differently in its fit.+The data is clearly quite linear when plotted like this, so it gives us an indication that our formula at the least has the right form. Notice that you can't see the y error bars because they are very small. The program has fitted the data using a least-squares fitting approach. This means that it has calculated for each data point the square of the difference between the data point and the line. It then adds up all these "​squares"​ and uses this number to determine how good the fit is. The computer tries to find the line that gives the smallest sum of squares and calls this the line of best fit. It's drawn this on the graph and called it "​y=a*x"​. It's also given you the value of a and its estimate for the uncertainty in a. The value the program gives for the error in a is often fairly small, it relies mostly on the scatter in a and only uses the errors you enter to weight the points differently in its fit.

Another technique you can use to estimate the error in the slope is to draw "​max-min lines"​. Here we draw in two lines, one that has the maximum slope that seems reasonable, the "​max"​ line, and another with the smallest slope that seems reasonable, the "​min"​ line. Normally we do these exercises on paper, but you can probably do it simply by holding a clear plastic ruler up to the screen to decide where you think the max-min lines should be (please DON'T draw on the screen!!). A line is reasonable if it just passes within //most// of the error bars. You then just take two convenient points on the line, and find the change in y over the change in x to calculate the slope. ​ You can then work out the slope of both lines to give yourself an estimate of the error in the slope. In the example below you can calculate that the "​max"​ line has a slope of about 90/3.6=25 cm/​s<​sup>​2</​sup>,​ and the "​min"​ line has slope of about 90/3.8=23.7 cm/​s<​sup>​2</​sup>,​ therefore if you used this method you would conclude that the value of the slope is 24.4+/-0.7 cm/​s<​sup>​2</​sup>,​ as compared to the computers estimate of 24.41+/​-0.16 cm/​s<​sup>​2</​sup>​. ​ Note that I drew the lines through (0,0) which we can consider as an error free point, i.e. the fits **must** go through this point. Another technique you can use to estimate the error in the slope is to draw "​max-min lines"​. Here we draw in two lines, one that has the maximum slope that seems reasonable, the "​max"​ line, and another with the smallest slope that seems reasonable, the "​min"​ line. Normally we do these exercises on paper, but you can probably do it simply by holding a clear plastic ruler up to the screen to decide where you think the max-min lines should be (please DON'T draw on the screen!!). A line is reasonable if it just passes within //most// of the error bars. You then just take two convenient points on the line, and find the change in y over the change in x to calculate the slope. ​ You can then work out the slope of both lines to give yourself an estimate of the error in the slope. In the example below you can calculate that the "​max"​ line has a slope of about 90/3.6=25 cm/​s<​sup>​2</​sup>,​ and the "​min"​ line has slope of about 90/3.8=23.7 cm/​s<​sup>​2</​sup>,​ therefore if you used this method you would conclude that the value of the slope is 24.4+/-0.7 cm/​s<​sup>​2</​sup>,​ as compared to the computers estimate of 24.41+/​-0.16 cm/​s<​sup>​2</​sup>​. ​ Note that I drew the lines through (0,0) which we can consider as an error free point, i.e. the fits **must** go through this point.
Line 369: Line 378:
**g=9.64+/​-0.28 m/​s<​sup>​2</​sup>​** **g=9.64+/​-0.28 m/​s<​sup>​2</​sup>​**

+
+You should now work out the value of g from the plot of your own data. If it is not consistent with the accepted value you should think about why this might be. Discuss these issues with your TA!
+
+Once you have your value of g we should also make a plot of $L$ directly against $T$.
+
+<​html>​
+<form method="​post"​ action="​http://​mini.physics.sunysb.edu/​~mdawber/​plot/​basicplot2.php"​ target="​_blank">​
+x axis label (include units): <input type="​text"​ name="​xaxis"​ size="​60"/><​br>​
+y axis label (include units): <input type="​text"​ name="​yaxis"​ size="​60"/><​br>​
+Check this box if the fit should go through (0,​0). ​ <input type="​checkbox"​ name="​zero"​ value="​y"​ /><​br>​
+(Don't include (0,0) in your list of points below, it will mess up the fit.)<​br>​
+What kind of errors are you entering below?<​SELECT name="​errortype">​
+<OPTION value="​none">​None</​OPTION>​
+<OPTION value="​x">​Errors in x</​OPTION>​
+<OPTION value="​y">​Errors in y</​OPTION>​
+<OPTION value="​xy">​Errors in x and y</​OPTION>​
+</​SELECT>​
+<​br>​
+
+x1: <input type="​text"​ name="​x1"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx1"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y1:  <input type="​text"​ name="​y1"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy1"​ size="​10"/><​br/>​
+x2: <input type="​text"​ name="​x2"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx2"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y2:  <input type="​text"​ name="​y2"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy2"​ size="​10"/><​br/>​
+x3: <input type="​text"​ name="​x3"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx3"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y3:  <input type="​text"​ name="​y3"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy3"​ size="​10"/><​br/>​
+x4: <input type="​text"​ name="​x4"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx4"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y4:  <input type="​text"​ name="​y4"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy4"​ size="​10"/><​br/>​
+x5: <input type="​text"​ name="​x5"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx5"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y5:  <input type="​text"​ name="​y5"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy5"​ size="​10"/><​br/>​
+x6: <input type="​text"​ name="​x6"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx6"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y6:  <input type="​text"​ name="​y6"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy6"​ size="​10"/><​br/>​
+x7: <input type="​text"​ name="​x7"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx7"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y7:  <input type="​text"​ name="​y7"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy7"​ size="​10"/><​br/>​
+x8: <input type="​text"​ name="​x8"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx8"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y8:  <input type="​text"​ name="​y8"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy8"​ size="​10"/><​br/>​
+x9: <input type="​text"​ name="​x9"​ size="​10"/>​+/​-<​input type="​text"​ name="​dx9"​ size="​10"/>&​nbsp;&​nbsp;&​nbsp;​ y9:  <input type="​text"​ name="​y9"​ size="​10"/>​+/​-<​input type="​text"​ name="​dy9"​ size="​10"/><​br/>​
+<input type="​submit"​ value="​submit"​ name="​submit"​ />
+</​form>​
+</​html>​
+
+
+\\
+
+Was this plot linear? Do you think that based on the difference between the graphs you are able to confirm what the correct equation is that relate the period of oscillation to the length of the string?

+==== Finishing up ====

+Once you have finished your experiment you need to discuss your results with your TA. Don't leave until they say you can as you only get credit for the lab if the TA thinks you did a good enough job on the experiment and have mastered the key points that the experiment covers!