Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer Question 3. Answer for #2: x=[0,1,2,3,4,5,6,7,8,9]; y=[0.053,1.477,1.970,3.279,4.153,4.934,5.178,5.828,6.082,6.484]; xnew=[0.5,1.5,2.5,3.5,4.5,5.5,6.5,7.5,8.5]; ynew=zeros(9,1); %FIND THE INTERPOLATED VALUES OF y for k=1:9 ynew(k)=y(k)+(y(k+1)-y(k))/((x(k+1)-x(k))*(xnew(k)-x(k))); end %PRINT THE TABLE OF

Please answer Question 3.

image text in transcribed

Answer for #2:

x=[0,1,2,3,4,5,6,7,8,9]; y=[0.053,1.477,1.970,3.279,4.153,4.934,5.178,5.828,6.082,6.484]; xnew=[0.5,1.5,2.5,3.5,4.5,5.5,6.5,7.5,8.5]; ynew=zeros(9,1); %FIND THE INTERPOLATED VALUES OF y for k=1:9 ynew(k)=y(k)+(y(k+1)-y(k))/((x(k+1)-x(k))*(xnew(k)-x(k))); end %PRINT THE TABLE OF INTERPOLATED POINTS fprintf('x y '); for k=1:9 fprintf('%f %f ',xnew(k),ynew(k)); end

image text in transcribed

2. Given the data appearing in the table below, do a linear interpolation to find matching y- values for the following set of x-values: 0.5, 1.5,2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5 Print a table of the interpolated points. The first column will be the x-values 0.5, 1.5, etc The second column will be the corresponding interpolated values of y (3pts) 0 0.053 1.477 21.970 3 3.279 4 4.153 5 4.934 65.178 75.828 8 6.082 9 6.484

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

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

What is dividend payout ratio ?

Answered: 1 week ago

Question

Explain the factors affecting dividend policy in detail.

Answered: 1 week ago