Question: Create a function using matlab to compute integral numerically using Simpson s 3 / 8 Rule, that complete the integration with either Simpson s 1
Create a function using matlab to compute integral numerically using Simpsons Rule, that complete the integration with either Simpsons Rule or Trapezoidal Rule whichever may be possible:
function integral mysimpsonsx f
Integrates numerically using Simpson's Rule and completes the integration with
either Simpsons or Trapezoidal Rule as applicable.
Input:
x vector of independent variable values
f vector of corresponding function values
Output:
integral numerically computed integral value
Integrate the following using both MATLABs integral and mysimpsons and discuss your comparison:
limits of integration from to x x dx
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
