Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions