Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select Kernel\(\rightarrow\)Restart) and then run all cells (in the menubar, select Cell\(\rightarrow\)Run All).
Make sure you fill in any place that says YOUR CODE HERE or “YOUR ANSWER HERE”, as well as your name and collaborators below:
NAME = ""
COLLABORATORS = ""
The following data is provided for the heat capacity of triptycene as a function temperature.
http://n.ethz.ch/~mottiger/download/Informatik/EX5/Exe5_hs07.pdf
The change in entropy is computed as:
\(S_2 - S_1 = \int_{T_1}^{T_2} \frac{C_p(T)}{T} dT\)
Use this data to calculate the entropy difference
of triptycene between \(T_1\) = 20 K and \(T_2\) = 300 K. Compare the answers you get with np.trapz and scipy.integrate.simps. Show the results with one decimal place and the correct units. Discuss whether the difference between trapz and simps are significant.
T |
Cp |
T |
Cp |
T |
Cp |
|---|---|---|---|---|---|
(K) |
(J/K/mol) |
(K) |
(J/K/mol) |
(K) |
(J/K/mol) |
20 |
18.00 |
120 |
111.6 |
220 |
200.9 |
40 |
44.56 |
140 |
127.8 |
240 |
221.0 |
60 |
64.43 |
160 |
144.9 |
260 |
241.8 |
80 |
80.88 |
180 |
162.8 |
280 |
263.1 |
100 |
96.15 |
200 |
181.5 |
300 |
284.7 |
When you are done, download a PDF and turn it in on Canvas. Make sure to save your notebook, then run this cell and click on the download link.
%run ~/f23-06623/f23.py
%pdf