1. Engineering
  2. Computer Science
  3. needs to be coded through matlab and explain the processing...

Question: needs to be coded through matlab and explain the processing...

Question details

Needs to be coded through matlab and explain the processing

Exercise 2 Use the function you coded in Exercise 1 to compute an approximation of the smallest zero of the fifth-order Chebyshev polynomial To this end, set tol-10-15, Nmax-20000. a=-0.99. b=-09. and write a function test-zero. m of the fol- lowing form function [zc,ec,x,f] -test.zero() Outputs: zc: numerical approximation of the zero obtained with the chord method. ec: error vector with components lalk)一201 (k 0,1, ), where 20-cos(9π/10) is the exact zero of (1) in the interval -1,-0.9, while k) is the sequence converging to 20 generated by the chord method. x: row vector of 1000 evenly spaced nodes in 1,1 including the endopoints) f: row vector representing the function (1) evaluated at x. The function test zero) should also produce the following three figures 1. The graph of the function (1) in figure(1) 2. The plot of the convergence history, i.e., the erosek)versus k. This plot should be in figure (2), and in a semi-log scale (use the command semilogy) -Z(k+1)-201 (y-axis) versus ek-エ(k)-201 (x-axis) in a log-log scale (use the The plot of ek+1 command loglog). This plot should be in figure (3). Remember, for sufficiently large k, the slope of the curve in such log-log plot represents the convergence order of the sequence. 3.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution