Question: Use a Lagrange interpolating polynomial of the first and second order to evaluate the value of y at x = 2 5 based on the
Use a Lagrange interpolating polynomial of the first and second order to evaluate the value of at based on the data in the following table;
table
a Solve by hand by using firstorder polynomial and the secondorder polynomial
b Draw the flow chart expressing the algorithm for the solution.
c Create an script containing a function evaluating the values for the predefined values by means of Lagrange's Interpolation Method.
i Write the MATLAB Code mscript on the answer sheet.
ii Add explanation comment with for each line of MATLAB Code.
iii. Build the script in MATLAB.
iv Run the script file and demonstrate the solution as screenshot using the "print screen" button on the keyboard.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
