Solution2

Solution2 - Solutions ChE132B HW2 30pt Problem 1 Part (a)...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Solutions ChE132B HW2 30pt Problem 1 Part (a) 5pt First, we should plot the function to get an idea of the location of the root(s). [ plotfunct.m ] Therefore, we write the EOS as a root finding problem by moving the nRT to the left side of the equation. [ PVT.m ] We see that there is only one root around V=16. Thus, V=16 will be an initial guess for starting numerical methods. >> plotfunct(@PVT,0.1,30,0.01) Part (b) 5pt I used the bounds of 16 and 17. [ Bisect.m ] >>Bisect(@PVT,16,17,0.5*10^-5*16,50) n lower upper epsilonA lamda
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 1.0000 16.5000 17.0000 0.5000 0.5000 2.0000 16.7500 17.0000 0.2500 0.5000 3.0000 16.7500 16.8750 0.1250 0.5000 4.0000 16.8125 16.8750 0.0625 0.5000 5.0000 16.8125 16.8438 0.0313 0.5000 6.0000 16.8125 16.8281 0.0156 0.5000 7.0000 16.8203 16.8281 0.0078 0.5000 8.0000 16.8203 16.8242 0.0039 0.5000 9.0000 16.8223 16.8242 0.0020 0.5000 10.0000 16.8232 16.8242 0.0010 0.5000 11.0000 16.8232 16.8237 0.0005 0.5000 12.0000 16.8235 16.8237 0.0002 0.5000 13.0000 16.8235 16.8236 0.0001 0.5000 14.0000 16.8235 16.8236 0.0001 0.5000 Procedure converged Elapsed time is 0.000668 seconds. ans =
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 13

Solution2 - Solutions ChE132B HW2 30pt Problem 1 Part (a)...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online