Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please I want matlab code like as Q3 !!! Q3: Control the results you obtained for Q1 and Q2 using the following Matlab code (you

Please I want matlab code like as Q3 !!!

image text in transcribed

image text in transcribed

Q3: Control the results you obtained for Q1 and Q2 using the following Matlab code (you may need to change the data points according to the given values): Nddp.m data=[1.0 0.7651977; 1.3 0.6200860; 1.6 0.4554022; 1.9 0.2818186; 2.2 0.1103623]; x=data(:,1); y=data: 2); [d]=Divided_diff(x,y); d function [d]=Divided_diff(x,y) d=y; n=length(x); for j=2:n for k=n:-1:j d(k)=(d(k)-d(k-1)/(x(k)-x(k-j+1)); end end Q1: Find a polynomial that interpolates the following data using Newton Divided Difference Method. f(x) 2 3 4 5 5 1 6 6 7 9 Q2: Find a polynomial to interpolate the following data, using both the Newton's divided difference interpolation method and the Lagrangian interpolation method. Compare both results. X 0 1 1 3 2 2 3 5 4 4 Q3: Control the results you obtained for Q1 and Q2 using the following Matlab code (you may need to change the data points according to the given values): Nddp.m data=[1.0 0.7651977; 1.3 0.6200860; 1.6 0.4554022; 1.9 0.2818186; 2.2 0.1103623]; x=data(:,1); y=data: 2); [d]=Divided_diff(x,y); d function [d]=Divided_diff(x,y) d=y; n=length(x); for j=2:n for k=n:-1:j d(k)=(d(k)-d(k-1)/(x(k)-x(k-j+1)); end end Q1: Find a polynomial that interpolates the following data using Newton Divided Difference Method. f(x) 2 3 4 5 5 1 6 6 7 9 Q2: Find a polynomial to interpolate the following data, using both the Newton's divided difference interpolation method and the Lagrangian interpolation method. Compare both results. X 0 1 1 3 2 2 3 5 4 4

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions