Question: PROBLEM 1 a) Write a function to fit data to a line of the form y ax+b. Use the following equations to obtain the line

 PROBLEM 1 a) Write a function to fit data to a
line of the form y ax+b. Use the following equations to obtain

PROBLEM 1 a) Write a function to fit data to a line of the form y ax+b. Use the following equations to obtain the line properties (the function name is myline): b) Use these four data points (1,1), (2,2), (4,2), (5,3) to test your function. c) Verify your function by comparing your result with the one obtained by Matlab function polyfit PROBLEM 2 For this problem use the myline function that you developed in Problem l. Many physical processes can be modeled by an exponential equation. For example, chemical reaction rates depend on a reaction-rate constant that is a function of temperature and activation energy: k kane ORT In this equation, R universal gas constant, 8.314 kJ/kmol K, activation energy, in kJ/kmol, T temperature, in K, and ko whose units depend on characteristics of the reaction. One possibility is s One approach to finding the values of ko and from experimental data is to plot the natural logarithm of k on the y axis and 1/Ton the x-axis. This should result in a straight line with slope-OR and intercept In (ko-that is, since the equation now has the form with y-ln (k), x 1/T, a -OR and b-In (k). Now consider the following data: k, s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!