Trapezoidal Rule MATLAB Program example: Question: Evaluate the integral x^4 within limits -3 to 3 using Trapazoidal rule. Solution: Let y(x)=x^4 here a=-3 and b=3 therefore (b-a)=6 let ‘n’ be the number of intervals. assume n=6 in this case. also h=(b-a)/n = 6/6 =1 x: -3 -2 -1 0 1 2 3 y: 81 16 […]
