Question: MATLAB Questions 1) Code a function using the composite trapezoidal rule that can numerically integrate a function. 2) Now do the same (separate function file)
MATLAB Questions
1) Code a function using the composite trapezoidal rule that can numerically integrate a function.
2) Now do the same (separate function file) but write a function that uses the composite Simpson's 1/3 rule to evaluate an integral.
I need the following inputs & outputs in the functions:
I - the integral estimate
n - number of points for integration
x1,x2 - the limits of integration
fxn - function that requires integration
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
