Question: Its a computer science question since MATLAB is needed 1. Consider the function: f(x) sin x e 1 on the interval [o 3T]. (with or
1. Consider the function: f(x) sin x e 1 on the interval [o 3T]. (with or without MATLAB for all parts) a. Plot the function over the given interval. b. Integrate f(x) over the given interval using the midpoint rule and the trapezoidal rule. For both methods, at what point (number of equally sized integration bins needed) does the solution of the numerical integration converge (changes of the numerically calculated integral of 10 or less for subsequent iterations)? (you may use MATLAB built-in functions) c. In two sentences or less, explain which method is better and why. d. Solve for the exact solution of integral of f(x) over [0 3T] (with or without MATLAB). What is the relative error between the exact value and the numerical integral of the trapezoidal method using 5 bins and using 15 bins
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
