Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use the following set of pressure-volume data to develop a script m-file name it as your name surname) to find an and ai in the
Use the following set of pressure-volume data to develop a script m-file name it as your "name surname") to find an and ai in the following exponential model. Asena Demirbas y = a + 2 x + ax After the model development; Calculate the root of developed model equation using Newton-Raphson method (Xinitial=0). Then, the code should automatically calculate the predicted volume @ 1.05 bar pressure using the regression model. Also, in the same script m-file this value must be calculated using Lagrange Interpolation and the absolute difference between two finding must be displayed as well. Data Volume (bar) (m) 32 25 22.2 18 15 12 9 7.2 Pressure 0.644 0.985 1.108 1.363 1.631 1.934 2.356 3.1 Note: The script m-file should work itself when I run it! I will not make any additional inputs. All inputs must be defined in the beginning of the code. Please note the following warnings! The results should be presented with fprintf command. The following results should be displayed at the end of the code in this order (just these. No more!): a- the model, with a, and a written on it b- root of the model equation C-result of the predicted volume at 1.05bar using regression model d- interpolation result of volume at 1.05bar using lagrange method, e-the absolute difference between the volume values calculated from model and interpolation. ANSWER When script executed above text with correct result should be displayed on command window: a) The Model: y=(.....) + (..........) *x+ ( .....) *x^2 b) root value : c) From model: V=......... when p=1.05bar d) According to LAGRANGE Method f interpolated value for p = 1.05 -> v= e) absolute difference between calculated value and interpolation difference
Step 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