Question: Write a Matlab code that uses Simpson's 1/3 Rule to approximate the integral of f(x)=x+x+x+1 over the interval [1,5] using n=10 equal subdivisions.
Write a Matlab code that uses Simpson's 1/3 Rule to approximate the integral of f(x)=x+x+x+1 over the interval [1,5] using n=10 equal subdivisions.
Step by Step Solution
There are 3 Steps involved in it
Define the function fx x3 x2 x 1 f x x3 x2 x 1 Define the interval ab a 1 b 5 Define the number o... View full answer
Get step-by-step solutions from verified subject matter experts
