Question: 2. Write a matlab function to use Simpsons Rule to estimate the integral: f(x) dx To receive full marks: The function The functions must have

 2. Write a matlab function to use Simpsons Rule to estimate

2. Write a matlab function to use Simpsons Rule to estimate the integral: f(x) dx To receive full marks: The function The functions must have input variables: must have the names SRule: f - An anonymous function to be integrated a and b - The limits of the definite integral n - The number of subintervals between a and b The output is a variable with a single value of the estimate of the integral. The variable can have any name you choose. If your function does not run with the command SRule(f,a,b,n) and produce an estimate of the integral on the test data, you will receive zero for this question. Use a script to demonstrate the output for the remainder of this assignment

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!