Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solve the following using matlab Question 7 (25 marks) The following data is given for the viscosity (L) and the density (p) of liquid ethylene
Solve the following using matlab
Question 7 (25 marks) The following data is given for the viscosity (L) and the density (p) of liquid ethylene glycol T(F) 0 50 100 150 200 u (lb/ft-hr) P(lb/ft) 242 71.03 82.1 70.13 30.5 68.90 12.6 67.77 5.57 66.59 A) Set up a loop which uses cubic spline interpolation to find the viscosity of ethylene glycol at temperatures of 30, 60, 90, 120 & 150 F. Print the results within the loop so the results display as follows: Using spline interpolation the value of viscosity (lb/ft-hr) is *** (lb/ft-hr) at ** F Using spline interpolation the value of viscosity (lb/ft-hr) is *** (lb/ft-hr) at ** F Using spline interpolation the value of viscosity (lb/ft-hr) is *** (lb/ft-hr) at ** F Using spline interpolation the value of viscosity (lb/ft-hr) is *** (lb/ft-hr) at ** F B) Repeat part A by fitting a third order polynomial to the viscosity data using the Matlab functions polyfit and polyval. The output should be modified as follows: Using a polynomial fit the value of viscosity (Ib/ft-hr) is *** (lb/ft-hr) at ** F Using a polynomial fit the value of viscosity (Ib/ft-hr) is *** (lb/ft-hr) at ** F Using a polynomial fit the value of viscosity (Ib/ft-hr) is *** (lb/ft-hr) at ** F Using a polynomial fit the value of viscosity (lb/ft-hr) is *** (lb/ft-hr) at ** FStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started