Question: Question [ 1 2 Points ] Given the function f ( x ) = l o g x , and the following data points:

Question [12 Points]
Given the function f(x)=logx, and the following data points:
\table[[x,4.0,4.5,5.5,6.0],[f(x),0.60206,0.65321,0.74036,0.77815]]
Use a Matlab/Octave command to fit a polynomial that passes through them.
[2]
Write a Matlab/Octave program to approximate the value f(4.7), and f(5.7) using
a) Lagrange interpolating polynomials of degree 3.
b) Newton's interpolating polynomials of degrees 3.
c) Write the error of each approximation. Which polynomial do you think gives a better approximation? Justify your answer.
[3]
using Octave please
Question [ 1 2 Points ] Given the function f ( x

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!