Question: please provide matlab code!! 1. Simpson's 1/3rd rule gives a better approximation to the quadrature of an integral because it uses three points when the

 please provide matlab code!! 1. Simpson's 1/3rd rule gives a better
please provide matlab code!!

1. Simpson's 1/3rd rule gives a better approximation to the quadrature of an integral because it uses three points when the area is divided into smaller regions. However, in using this rule the area must be broken up into even number of intervals. The expression for the rule is 12 i=1-1 delx area = 3 J'y +4 v; +2 1 + Yn+1 1=2,4,6 1=3,5,7 where n is an even number of regions. Here y=y(xMin) and yn+1=y(xMax). Write a script that will use Simpson's 1/3rd rule to evaluate an integral numerically. Check the script by evaluating: 1 3xdx=1.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!