Question: Compute I = Z pi 2 0 x 1 . 5 cos ( x 2 ) dx using the methods requested below. Parts (
Compute
I
Z pi
x
cosx
dx
using the methods requested below. Parts a through d must be done by hand; you can use
Python to help with calculations if you do not use any of the numerical integration libraries:
a pts Trapezoid rule using equalsized panels of width h
pi
on the interval
pi
b pts Midpoint rule using the midpoints of the panels described in part a
c pts Trapezoid rule with end correction using the same panels
d pts Simpsons rule using the same panels use Simpson panels of size Simpson h
where h is the grid spacing of the panels from part a
e pts Use scipy.integrate.quad with default error tolerances to compute the integral.
Which of your answers in parts a through d most closely matches the value computed
here?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
