Kernel: Python 2 (system-wide)
Settings for UCS30
High Voltage: 950 V Coarse Gain: 8 Fine Gain: 1.7
This placed the 662-keV peak of Cs-137 around channel 660
Calibration
Used sources from the Gamma Source Set (Model RSS 8)
Collected data for Cs-137 for 600 s
32-keV peak: channel 34 662-keV peak: channel 654
Collected data for Na-22 for 600 s
511-keV peak: channel 506
Used 3-point energy calibration
Compton Scattering
Used the 37-MBq Cs-137 source
0 deg 600 s 657.91 keV (no target) 30 deg 3600 s (backgrd w/o target for 1147 s) 557 keV 60 deg 36000 s (backgrd w/o target for 3600 s) 399 keV
Data with background subtracted for 60 deg is shown below
In [1]:
In [1]:
<matplotlib.legend.Legend at 0x7fb089ca1190>
In [2]:
<matplotlib.legend.Legend at 0x7fb0891043d0>
In [3]:
(array([ 0. , 1.38461538, 2.76923077, 4.15384615,
5.53846154, 6.92307692, 8.30769231, 9.69230769,
11.07692308, 12.46153846, 13.84615385, 15.23076923,
16.61538462, 18. , 19.38461538, 20.76923077,
22.15384615, 23.53846154, 24.92307692, 26.30769231,
27.69230769, 29.07692308, 30.46153846, 31.84615385,
33.23076923, 34.61538462, 36. , 37.38461538,
38.76923077, 40.15384615, 41.53846154, 42.92307692,
44.30769231, 45.69230769, 47.07692308, 48.46153846,
49.84615385, 51.23076923, 52.61538462, 54. ,
55.38461538, 56.76923077, 58.15384615, 59.53846154,
60.92307692, 62.30769231, 63.69230769, 65.07692308,
66.46153846, 67.84615385, 69.23076923, 70.61538462,
72. , 73.38461538, 74.76923077, 76.15384615,
77.53846154, 78.92307692, 80.30769231, 81.69230769,
83.07692308, 84.46153846, 85.84615385, 87.23076923,
88.61538462, 90. , 91.38461538, 92.76923077,
94.15384615, 95.53846154, 96.92307692, 98.30769231,
99.69230769, 101.07692308, 102.46153846, 103.84615385,
105.23076923, 106.61538462, 108. , 109.38461538,
110.76923077, 112.15384615, 113.53846154, 114.92307692,
116.30769231, 117.69230769, 119.07692308, 120.46153846,
121.84615385, 123.23076923, 124.61538462, 126. ,
127.38461538, 128.76923077, 130.15384615, 131.53846154,
132.92307692, 134.30769231, 135.69230769, 137.07692308,
138.46153846, 139.84615385, 141.23076923, 142.61538462,
144. , 145.38461538, 146.76923077, 148.15384615,
149.53846154, 150.92307692, 152.30769231, 153.69230769,
155.07692308, 156.46153846, 157.84615385, 159.23076923,
160.61538462, 162. , 163.38461538, 164.76923077,
166.15384615, 167.53846154, 168.92307692, 170.30769231,
171.69230769, 173.07692308, 174.46153846, 175.84615385,
177.23076923, 178.61538462, 180. ]), array([2. , 1.99790449, 1.99163745, 1.98125704, 1.96685889,
1.94857435, 1.92656794, 1.90103431, 1.87219477, 1.84029329,
1.80559246, 1.76836911, 1.72891004, 1.68750773, 1.64445633,
1.60004779, 1.55456837, 1.50829556, 1.46149531, 1.4144198 ,
1.36730557, 1.32037212, 1.27382089, 1.22783466, 1.18257729,
1.13819375, 1.09481049, 1.05253595, 1.01146136, 0.97166159,
0.93319622, 0.89611061, 0.86043708, 0.826196 , 0.79339707,
0.76204037, 0.73211754, 0.7036128 , 0.67650401, 0.65076355,
0.62635923, 0.60325511, 0.58141219, 0.56078911, 0.54134274,
0.52302867, 0.50580174, 0.4896164 , 0.47442708, 0.46018852,
0.44685597, 0.43438546, 0.42273396, 0.41185953, 0.40172144,
0.39228024, 0.38349788, 0.37533767, 0.3677644 , 0.36074429,
0.35424505, 0.34823581, 0.34268714, 0.33757101, 0.33286077,
0.32853111, 0.32455801, 0.32091872, 0.31759168, 0.31455651,
0.31179393, 0.30928574, 0.30701477, 0.3049648 , 0.30312055,
0.30146764, 0.2999925 , 0.29868237, 0.29752525, 0.29650985,
0.29562554, 0.29486235, 0.29421091, 0.2936624 , 0.29320858,
0.29284166, 0.29255439, 0.29233991, 0.29219183, 0.29210414,
0.2920712 , 0.29208773, 0.29214879, 0.29224975, 0.29238625,
0.29255424, 0.29274991, 0.2929697 , 0.29321028, 0.29346852,
0.29374153, 0.29402656, 0.29432108, 0.29462271, 0.29492923,
0.29523858, 0.29554881, 0.29585814, 0.29616489, 0.2964675 ,
0.29676453, 0.29705463, 0.29733656, 0.29760917, 0.29787139,
0.29812225, 0.29836084, 0.29858635, 0.298798 , 0.29899513,
0.2991771 , 0.29934337, 0.29949343, 0.29962684, 0.29974323,
0.29984226, 0.29992365, 0.29998719, 0.3000327 , 0.30006005,
0.30006918]))
<matplotlib.legend.Legend at 0x7fb088e9a690>
In [6]:
<matplotlib.legend.Legend at 0x7fb089035890>
In [4]:
<matplotlib.legend.Legend at 0x7fda107b4d50>
In [11]:
[0.25239971 0.31153854 0.38656718 0.45643266 0.51963307 0.57065436
0.59104503]
[1.87280587 1.59819272 0.82725377 0.89460801 0.9976955 0.93587315
1.15844827]
<matplotlib.legend.Legend at 0x7fda10362290>
In [12]:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-12-22c54c289fe7> in <module>()
2
3 figure()
----> 4 plot(thetadeg,d2)
5 xlim(0,180)
6 ylim(0)
/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in plot(*args, **kwargs)
3361 mplDeprecation)
3362 try:
-> 3363 ret = ax.plot(*args, **kwargs)
3364 finally:
3365 ax._hold = washold
/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/matplotlib/__init__.pyc in inner(ax, *args, **kwargs)
1865 "the Matplotlib list!)" % (label_namer, func.__name__),
1866 RuntimeWarning, stacklevel=2)
-> 1867 return func(ax, *args, **kwargs)
1868
1869 inner.__doc__ = _add_data_doc(inner.__doc__,
/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/matplotlib/axes/_axes.pyc in plot(self, *args, **kwargs)
1526 kwargs = cbook.normalize_kwargs(kwargs, _alias_map)
1527
-> 1528 for line in self._get_lines(*args, **kwargs):
1529 self.add_line(line)
1530 lines.append(line)
/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in _grab_next_args(self, *args, **kwargs)
404 this += args[0],
405 args = args[1:]
--> 406 for seg in self._plot_args(this, kwargs):
407 yield seg
408
/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in _plot_args(self, tup, kwargs)
381 x, y = index_of(tup[-1])
382
--> 383 x, y = self._xy_from_xy(x, y)
384
385 if self.command == 'plot':
/ext/sage/sage-8.9_1804/local/lib/python2.7/site-packages/matplotlib/axes/_base.pyc in _xy_from_xy(self, x, y)
240 if x.shape[0] != y.shape[0]:
241 raise ValueError("x and y must have same first dimension, but "
--> 242 "have shapes {} and {}".format(x.shape, y.shape))
243 if x.ndim > 2 or y.ndim > 2:
244 raise ValueError("x and y can be no greater than 2-D, but have "
ValueError: x and y must have same first dimension, but have shapes (900,) and (7,)
Student data from Fall 2017
In [13]:
<matplotlib.legend.Legend at 0x7fda100ef4d0>
In [14]:
<matplotlib.legend.Legend at 0x7fda1000f8d0>
In [18]:
results of linear_fit: no uncertainties provided, so use with caution
reduced chi squared = 4.19466771906766e-09
degrees of freedom = 6
y = ax + b
('a = ', 0.0019096876294054433, ' +/- ', 0.5078589331363685)
('b = ', 0.0015192323556281083, ' +/- ', 0.4951590961873137)
(523.645848987008, 658.2271607732855)
In [24]:
results of general_fit: no uncertainties provided, so use with caution
degrees of freedom = 6
reduced chi squared = 26.797725895030535
('optimal parameters: ', array([665.05953214, 1.29269402]))
('uncertainties of parameters: ', array([3.4857686 , 0.02605173]))
514.4755997014257
In [19]:
results of general_fit: no uncertainties provided, so use with caution
degrees of freedom = 7
reduced chi squared = 28.17316284822041
('optimal parameters: ', array([1.27270851]))
('uncertainties of parameters: ', array([0.019842]))
519.3648011208836
In [27]:
results of linear_fit:
reduced chi squared = 153.941214659
degrees of freedom = 1
y = ax + b
('a = ', 1.1486412151266823, ' +/- ', 0.017598381552826454)
('b = ', -58.555579034512235, ' +/- ', 8.163851344817177)
[666.23702771 505.42725759 33.33571818]
[19.2684301 16.80465669 9.57172187]
[<matplotlib.lines.Line2D at 0x7fda09bba790>]
In [0]: