import numpy as np
Repeat the calculation of the uncertainty $\alpha_P$ in problem 3 using the "calculus approximation" of the uncertainties.
R = 8.3145
Tbest = 298.0
alpha_T = 0.2
Vmbest = 2.000e-4
alpha_V = 0.003e-4
a = 1.408e-1
b = 3.913e-5
alpha_PT = (R/(Vmbest-b))*alpha_T
alpha_PV = ((-1*R*Tbest/(Vmbest-b)**2)+2*a/Vmbest**3)*alpha_V
alpha_PT, alpha_PV
alpha_P = np.sqrt(alpha_PV**2 + alpha_PT**2)
format(alpha_P,'e')
# And divide by 10^6
alpha_P/1e6
So, the uncertainty in the pressue is 0.02 MPa. Basically the same thing that we got with the other approaches to Section 4.2.2.
version_information
is from J.R. Johansson (jrjohansson at gmail.com); see Introduction to scientific computing with Python for more information and instructions for package installation.
version_information
is installed on the linux network at Bucknell
%load_ext version_information
%version_information numpy