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 = ""

Antoine equation#

The Antoine equation relates the vapor pressure of a pure liquid to the temperature according to this equation:

\(\log_{10} P(T) = A + B / (T + C)\)

Use this data to find values for \(A, B, C\) and confidence intervals for each parameter.

import numpy as np

TC = np.array([-36.7, -19.6, -11.5, -2.6, 7.6, 15.4, 26.1, 42.2, 60.6, 80.1])  # Temp in degC
P = np.array([1, 5, 10, 20, 40, 60, 100, 200, 400, 760])  # vapor pressure in Torr

Part 2#

Plot the data, and your fit over the temperature range of -50 to 100 degC.

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