Question: it is MATLAB code. Part 1 - use Simpson's rule to integrate y from a to b Create a function with the headerline I simpson

 it is MATLAB code. Part 1 - use Simpson's rule to

it is MATLAB code.

Part 1 - use Simpson's rule to integrate y from a to b Create a function with the headerline I simpson (x, y) where the inputs x and y are arrays. Your function should use Simpson's rule to find the area under the curve of y from a (the first point in x) to b (the last point in x) with a step size indicated by the x array. You may assume that x had a constant step size (h x (2)-x ( 1 ) ) Check your function (note: >> indicates something that I am typing in to the command window) >>x0:0.01:5; >Int simpson (x, y) 44.1667 >> --?"pi.pi/100:3"pi; x y cos (x) >> output simpson (x, y) output 1.9579e-15 Solution.zip CEACAA007URCSO.dat CEACAA007URBCI.dat 3 4 5 0

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!