1 let pnx be the lagrange interpolating polynomial of

Assignment Help Applications of MATLAB
Reference no: EM13346981

1. Let pn(x) be the Lagrange interpolating polynomial of degree at most n that satis?es pn(xi) = yi, i = 0, 1, 2, . . . , n.
Write a MATLAB function to evaluate pn at a set of points stored in the MATLAB vector z. Assuming the points x0, x1, . . . , xn are stored in the MATLAB vector x and the values y0, y1, . . . , yn are stored in the MATLAB vector y, the input to your function should be x, y and z. The output should be a vector, of the same length as z, containing the values of the polynomial at the points stored in z.

2. Use your MATLAB function to compute the Lagrange interpolating polynomial of degree at most n for the function f(x) = ln(x + 1) on the interval [0, 2], with uniformly distributed interpolation points, for n = 1 and n = 2. For each value of n, produce a plot containing the
interpolation points, the function f(x) and the polynomial pn(x) for x 2 [0, 2], when ploting f(x) and pn(x), you should use a vector z containing 500 uniformly distributed points in the interval [0, 2].

3. Consider the interpolation error for the function f of Question 2 en(x) = |f(x) - pn(x)|, n = 0, 1, . . .
Produce a plot showing that e2(x) ≤ e1(x) in the interval [0, 2].

4. Calculate an approximation to the in?nity norm of the error in the Lagrange interpolating polynomials pn(x) of the function f(x) for n = 1, 2, . . . , 10.

5. Repeat question 4 for the function g(x) = f(10x) = ln(10x + 1).

6. Let h be the function de?ned by h(x) = ln( x + 1), with > 0. Prove by induction that the nth derivative of h is given by

99_Lagrange interpolating polynomial of degree.png

7. Read the documentation of the MATLAB command semilogy, which plots data with a logarithmic scale for the y-axis. Use semilogy to plot, on the same graph, the in?nity norm of the error against n for the functions f(x) and g(x). Explain the plot using the result of Question 6.

Reference no: EM13346981

Questions Cloud

Write a paper on historical trends of managementreport : write a paper on historical trends of management.report inhibits1.introductionthe leaders and managers of any
An experiment was carried out to calculate forces acting in : an experiment was carried out to calculate forces acting in two members of a pin-jointed framework due to different
Simple interest compound interest discount rate force of : simple interest compound interest discount rate force of interest av pv1.fund p earns interest at a simple rate of 4 a
Part-1general environment includes those sectors that may : part-1general environment includes those sectors that may not have a direct impact on the daily operations of the firm
1 let pnx be the lagrange interpolating polynomial of : 1. let pnx be the lagrange interpolating polynomial of degree at most n that satis?es pnxi yi i 0 1 2 . . . n.write
1 the ground state ofnbsp has jpi 32-1 the first excited : 1. the ground state ofnbsp has jpi 32-1 the first excited state at 67.4 kev has jpi 12-1 and the second excited state
Scratch pre-testthese pre-test questions are for getting : scratch pre-testthese pre-test questions are for getting your background knowledge on scratch and computing
1 consider the diagram below where a pump is used to draw : 1 consider the diagram below where a pump is used to draw water from a lake to feed an irrigation system.a which of the
1 write a program that takes the image tracksjpg and finds : 1 write a program that takes the image tracks.jpg and finds canny edges and then finds lines in these edges using the

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  1 this problem is intended to demonstrate some problems

1. this problem is intended to demonstrate some problems that can arise from the finite precision of numerical

  In a shell-and-tube heat exchanger one fluid passes through

in a shell-and-tube heat exchanger one fluid passes through a central tube while another fluid flows through an outer

  Write a matlab function speed planetary n emesh first last

write a matlab function speed planetary n emesh first last arm that computes the speed of a given link in a

  1 given the following actual cpu burst for a tasknbsp 6 4 6

1. given the following actual cpu burst for a tasknbsp 6 4 6 4 13 13 13 and an initial best guess at the burst as 10

  Problem 1nbsp use matlab to answer the following system of

problem 1.nbsp use matlab to answer the following system of linear equations2x y 3z 1 2x 6y 8z 3 6x 8y 18z 5

  P1 write the commands that will create the following matrix

p1 write the commands that will create the following matrix. you can use only special matrix commandsp2 two cars

  Implementation in matlab under windows to open a named pipe

implementation in matlab under windows to open a named pipe and to read data from the pipe an other program writes into

  1 we want to find the integral of a function at an

1. we want to find the integral of a function at an arbitrary location x from the origin.nbsp thuswhere ix0 is the

  Create the following graph which contains a piecewise

create the following graph which contains a piecewise function where a line exists in the first interval a parabola in

  Problem consider a trapezoidal piece of polymer film as

problem consider a trapezoidal piece of polymer film as shown below. the parallel sides of the trapezoid are insulated

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd