New Jersey Institute of Technology Python Script Worksheet
Description
This homework will be graded, and therefore has to be done independently.
1. Write a Python script which performs a non-linear regression on the data “ammonia.tx” to fit the Antoine’s equation. You can use the script from Ex. 15.5 or the scipy.optimize.curve_fit function (or other alternatives, as long as they work).
– Your script should include plotting the data: experimental vs model
– Find the Antoine equation parameters in the literature and compare with yours. Include the plots and the parameters in a separate file.
2. Find one example from your ChemE courses where you had to perform a linear or non-linear regression. No need to solve it, but write in enough details so that it is clear what you are talking about. If linearization was required please write the linearization.
Note: you should upload one .py file (your script for Problem 1) and one .pdf file (with plot and parameters for Problem 1 and Problem 2 narrative). The “ammonia.txt” should not be modified, so that your script should work when executed in the same directory as the “ammonia.txt” file.
Unformatted Attachment Preview
From: https://pubs.acs.org/doi/abs/10.1021/ja01281a008
“Roy Overstreet and W. F. Giauque J. Am. Chem. Soc. 1937, 59, 2, 254-259”
Table 1
T (K) P (cm Hg) dT (K) dP (cm Hg)
199.262 6.188 0.004 0.01
203.114 8.261 0.004 0.01
206.587 10.608 0.004 0.01
210.811 14.181 0.004 0.01
214.42 18.017 0.004 0.01
218.354 23.126 0.004 0.01
224.246 32.98 0.004 0.01
229.205 43.725 0.004 0.01
234.84 59.248 0.004 0.01
241.585 83.535 0.004 0.01
Purchase answer to see full
attachment
Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."