Question: write a program using the following numerical integration method Write a program in Python to numerically integrate I=051+x21dx Your program should show how many nodes

write a program using the following numerical integration method

Write a program in Python to numerically integrate I=051+x21dx Your program should show how many nodes (for the Newton-Cotes rules) or how many samples (for MC) does it take for the result of each integration method be within 0.01% tolerance of the analytical solution. Do not use any existing python modules for the Newton-Cotes rules implementation. For 1-D integration such as this one, they are easy enough to implement by yourself. Write the program in a python notebook (.ipynb) and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
