Python Lab Tutorials: Lab 10
Consider the following integral
![]()
with ![]()
- Use Sympy’s built-in numerical integration “integrate” function to calculate an approximation to the true value of the integral. Consider this to be the true value.
- Plot
for ![Rendered by QuickLaTeX.com y\in[-2,2]](https://engcourses-uofa.ca/wp-content/ql-cache/quicklatex.com-9c73485c9defd562c47cd9cbf7d3a1cc_l3.png)
- Using the midpoint rectangle rule, provide a table with the following columns: n,h,I_2,|E| with

- Using the trapezoidal rule, provide a table with the following columns: n,h,I_T,|E| with

- Using Simpson’s 1/3 rule, provide a table with the following columns: n,h,I_S1,|E| with

- Using Simpson’s 3/8 rule, provide a table with the following columns: n,h,I_S2,|E| with

- Comment on the accuracy obtained using each method
