Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

show me the work please HOMEWORK 11 MATIAB PROGRAMMING ENIRCISE: NI MI, RIC \\LI

ID: 3713919 • Letter: S

Question

show me the work please

HOMEWORK 11 MATIAB PROGRAMMING ENIRCISE: NI MI, RIC LINTEGR (? You must write MATLAB code and then execute your code to produce output that solves this problem. You must show both your program and your program output in a screenshot(s) to receive full credit for this exercise. You must also include a handwritten MATLAB program ONLY show a screen shot for the run with 4 panels. Remember: Note: EXERCISE 8 (5 pts.): “Area Under the Curve" Although this exercise can be solved analytically, you must write MATLAB code to perform t numerical integration that will solve it, and then run your code to produce the numerical integration result, Consider f(x)4 over the interval x 2.0 to x-9.0 Questions: I. Use numerical integration and 4 panels to compute the area underneath the (x) curve (aka: between the x axis and f(x) ) 2. Recompute the area under the f(x) curve using 10, 25, 75, and 150 panels, respectively 3. Using CALCULUS, an "infinite" number of panels are used. Next, recompute the area under the f(x) curve using an "infinite" number of panels. For this problem, assume that 10,000 panels is considered "infinite", DO NOT calculate the area actually using calculus. 4. Show your answer as a table of total area and number of panels, for 4, 10, 25, 75, 150, "infinite" number of panels. Add a column to calculate the % error (calculate by hand!): area in each panel run] -[area in infinite panel run area ininfinite panel run * 100% Realizing that computing with increasing number of panels will increase your accuracy; HOWEVER, will also increase the time for MATLAB to compute (aka: runtime). WRITE a paragraph discussing what you saw as the number of panels increased, Include what you saw and make a comment on how many panels you feel would produce a "GOOD ENOUGH" answer if you wanted an error of less than 0.25%. 5. Number of Panels Area Difference Percent error 10 25 75 150 "infinite" 0.0 0.00% b1 Page S of 5

Explanation / Answer

fun=@(x,c) x.^3+4;
Area=integral(fun,2,9);
% Area between 2 to 9
Area
% area to x axis
ar=integral(fun,-Inf,Inf);
ar