Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want a matlab code for the question For the following data points: f(0.3)=0.740818,f(0.4)=0.670320,f(0.5)=0.606531andf(0.6)=0.548812 a) Use a Matlab/Octave command to fit a polynomial that passes

I want a matlab code for the question image text in transcribed
For the following data points: f(0.3)=0.740818,f(0.4)=0.670320,f(0.5)=0.606531andf(0.6)=0.548812 a) Use a Matlab/Octave command to fit a polynomial that passes through them. [2] b) Write a Matlab/Octave program to approximate the value f(0.45) using Lagrange interpolating polynomials of degree three. [4] c) Write a Matlab/Octave program to approximate the value f(0.45) using Newton's interpolating polynomials of degrees three to approximate the value f(0.45). [4] d) Write a Matlab/Octave program to approximate Write a Matlab/Octave program to approximate the value f(0.45) using Newton's Forward difference interpolating polynomials of degrees three to approximate the value f(0.45). [4] e) Which polynomial do you think gives a better approximation of f(0.45) Justify your answer. answer. [3] f) Plot the three interpolating polynomials on the same graph and comment on the graph. [3] For the following data points: f(0.3)=0.740818,f(0.4)=0.670320,f(0.5)=0.606531andf(0.6)=0.548812 a) Use a Matlab/Octave command to fit a polynomial that passes through them. [2] b) Write a Matlab/Octave program to approximate the value f(0.45) using Lagrange interpolating polynomials of degree three. [4] c) Write a Matlab/Octave program to approximate the value f(0.45) using Newton's interpolating polynomials of degrees three to approximate the value f(0.45). [4] d) Write a Matlab/Octave program to approximate Write a Matlab/Octave program to approximate the value f(0.45) using Newton's Forward difference interpolating polynomials of degrees three to approximate the value f(0.45). [4] e) Which polynomial do you think gives a better approximation of f(0.45) Justify your answer. answer. [3] f) Plot the three interpolating polynomials on the same graph and comment on the graph. [3]

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

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

Why is identifying a target market so important to a company?

Answered: 1 week ago

Question

7. How does each of these characters achieve epiphany?

Answered: 1 week ago