Question: Please answer fully and clearly using MatLab Problem 3: Chebyshev Nodes For this problem, you will repeat Problem 2 using the Chebyshev nodes. Problems 2

 Please answer fully and clearly using MatLab Problem 3: Chebyshev Nodes

Please answer fully and clearly using MatLab

Problem 3: Chebyshev Nodes For this problem, you will repeat Problem 2 using the Chebyshev nodes. Problems 2 and 3 are identical, except for the definition of the interpolation nodes x1 In your prob3): (a) Interpolate the function tanh(10x) in [-1,1] using the grid of n Chebyshev nodes, where n is 5,15,25 or 35. The Chebyshev nodes in this interval are defined as (21-1 )? For each value of n, generate a separate graph with the following the graph of h(x) in [-1,1] MATH353, Spring 2018 Assignment 7 . the datapoints {(Xi, h(Xi))}n-1 (as points) the interpolating polynomial of degree at most n -1 that interpolates the datapoints in [-1,1] Use subplot to present all axes in the same figure window. You can use the following guide for n-5:10:35 %define x and y, the datapoints %find interpolating polynomial subplot (2,2,0.1*nt0.5); % plot the graph for current value of n end (b) Is Runge's phenomenon present for this function and choice of nodes? Give your answer in a block of comments. Justify your r answer based on the plots you created Problem 3: Chebyshev Nodes For this problem, you will repeat Problem 2 using the Chebyshev nodes. Problems 2 and 3 are identical, except for the definition of the interpolation nodes x1 In your prob3): (a) Interpolate the function tanh(10x) in [-1,1] using the grid of n Chebyshev nodes, where n is 5,15,25 or 35. The Chebyshev nodes in this interval are defined as (21-1 )? For each value of n, generate a separate graph with the following the graph of h(x) in [-1,1] MATH353, Spring 2018 Assignment 7 . the datapoints {(Xi, h(Xi))}n-1 (as points) the interpolating polynomial of degree at most n -1 that interpolates the datapoints in [-1,1] Use subplot to present all axes in the same figure window. You can use the following guide for n-5:10:35 %define x and y, the datapoints %find interpolating polynomial subplot (2,2,0.1*nt0.5); % plot the graph for current value of n end (b) Is Runge's phenomenon present for this function and choice of nodes? Give your answer in a block of comments. Justify your r answer based on the plots you created

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 Databases Questions!