Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

program 4.2: function [C,D] = newpoly( X,Y ) %UNTITLED2 Summary of this function goes here % Detailed explanation goes here n=length(X); D=zeros(n,n); D(:,1)=Y'; for j=2:n

program 4.2:

function [C,D] = newpoly( X,Y )

%UNTITLED2 Summary of this function goes here

% Detailed explanation goes here

n=length(X);

D=zeros(n,n);

D(:,1)=Y';

for j=2:n

for k=j:n

D(k,j)=(D(k,j-1)-D(k-1,j-1))/(X(k)-X(k-j+1));

end

end

C=D(n,n);

for k=(n-1):-1:1

C=conv(C,poly(X(k)));

m=length(C);

C(m)=C(m)+D(k,k);

end

end

i need question 2 parts a and b that depend on the question below , program 4.2 and algorithm

image text in transcribedimage text in transcribedimage text in transcribed this question that i want the solution for

2. The measured temperatures duning a 5-hour period in a suburb of Lus Augeles on (a) Use Program 4.1 to construct a Lagrange interpolatory polynomial for the data (b) Use Algorithm 4.1(ii) to estimate the average temperature during the given (c) Graph the data in the table and the polynomial from part (a) on the sae codi November 8 are given in the following table. in the table. 5-hour period. nate system. Discuss the possible error that can result from using the polynomial in part (a) to estimate the average temperature. Time, PM.Degrees Fahrenheit 2 3 4 65 64 63 63 2. The measured temperatures duning a 5-hour period in a suburb of Lus Augeles on (a) Use Program 4.1 to construct a Lagrange interpolatory polynomial for the data (b) Use Algorithm 4.1(ii) to estimate the average temperature during the given (c) Graph the data in the table and the polynomial from part (a) on the sae codi November 8 are given in the following table. in the table. 5-hour period. nate system. Discuss the possible error that can result from using the polynomial in part (a) to estimate the average temperature. Time, PM.Degrees Fahrenheit 2 3 4 65 64 63 63

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

Oracle9i Database Administrator Implementation And Administration

Authors: Carol McCullough-Dieter

1st Edition

0619159006, 978-0619159009

More Books

Students also viewed these Databases questions

Question

Describe your ideal working day.

Answered: 1 week ago