Consider the function f(x) = e^(cos(x)) USING MATLAB a) Write code that will approximate the definite integral
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider the function f(x) = e^(cos(x)) USING MATLAB
a) Write code that will approximate the definite integral of f(x) over
[0, 1] using Simpson's rule with 100 evenly spaced subintervals.
Compare your approximation with the actual value of the definite
integral. How close was it?
Hint: Using Simpson's rule
Posted Date: