Question: Please answer in matlab For each problem below, save 9 solutions. You will first save the trapezoid rule with 1 subinterval, then 5 subintervals, then


Please answer in matlab
For each problem below, save 9 solutions. You will first save the trapezoid rule with 1 subinterval, then 5 subintervals, then 50 subintervals. Repeat the calculation using Simpson's rule instead. Then, finally, use Simpson's 3/8ths rule. d) For this calculation, you will save only a single result. If f'(x) = sin(x), and f(1) = 5, Save f(x) for x vector between x E [1,10), Ax = 0.2. For each subinterval (eg. x [1,1.2]), use Simpson's 3/8ths rule. Save the resulting f(x) vector on HW6_36.dat. Plot f(x) and f'(x) on the same figure window. This problem is primarily testing your knowledge of the fundamental theorem of calculus. For each problem below, save 9 solutions. You will first save the trapezoid rule with 1 subinterval, then 5 subintervals, then 50 subintervals. Repeat the calculation using Simpson's rule instead. Then, finally, use Simpson's 3/8ths rule. d) For this calculation, you will save only a single result. If f'(x) = sin(x), and f(1) = 5, Save f(x) for x vector between x E [1,10), Ax = 0.2. For each subinterval (eg. x [1,1.2]), use Simpson's 3/8ths rule. Save the resulting f(x) vector on HW6_36.dat. Plot f(x) and f'(x) on the same figure window. This problem is primarily testing your knowledge of the fundamental theorem of calculus
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
