Question: Please use matlab to sove this question, I post the function you gonna use in this question above the question. Please answer each of the

Please use matlab to sove this question, I post the function you gonna use in this question above the question. Please answer each of the question (a), (b), (d). It's a numerical computational question. Please make graphs and a statement of the order of convergence that you measure.Please use matlab to sove this question, I post the function yougonna use in this question above the question. Please answer each of

Function 5.6.1 (trapezoid) Trapezoid formula for numerica l integration. function [T,t,y] = trapezoid(f,a,b,n) XTRAPEZOID Trapezoid formula for numerical % Input: integration. integrand (function) % a, b interval of integration (scalars) number of interval divisions % Output: approximation to the integral of f over (a,b) vector of nodes used vector of function values at nodes h = t= y = T = (b-a); a+h*(0:n)"; f(t); h * ( sum (y(2:n)) 0.5*(y(1) y(n+1)) + ); + For each integral below, use Function 5.6.1 to estimate the integral for n = 10-2 nodes for k = 1,2, . . . , 10. Make a log-log plot of the errors and confirm or refute second-order accuracy. (These integrals were taken from [8].) 1 (a) .. x log(1 + x) dx = 4 Function 5.6.1 (trapezoid) Trapezoid formula for numerica l integration. function [T,t,y] = trapezoid(f,a,b,n) XTRAPEZOID Trapezoid formula for numerical % Input: integration. integrand (function) % a, b interval of integration (scalars) number of interval divisions % Output: approximation to the integral of f over (a,b) vector of nodes used vector of function values at nodes h = t= y = T = (b-a); a+h*(0:n)"; f(t); h * ( sum (y(2:n)) 0.5*(y(1) y(n+1)) + ); + For each integral below, use Function 5.6.1 to estimate the integral for n = 10-2 nodes for k = 1,2, . . . , 10. Make a log-log plot of the errors and confirm or refute second-order accuracy. (These integrals were taken from [8].) 1 (a) .. x log(1 + x) dx = 4

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!