Question: Create a function to numerically integrate the equation using the Newton-Cotes Composite Boole's Rule, I=2abxex2dx The input would be in the sequence, a,b, and n.

Create a function to numerically integrate the equation using the Newton-Cotes Composite Boole's Rule, I=2abxex2dx The input would be in the sequence, a,b, and n. Name the function "newton_cotes (a,b,n) ". The " n " is the number of panels. Hint: Look in the page Some Useful Docs in the Lesson 6A Numerical Method and refer to the newton_cotes_boole.pdf for more info Hint 2: I=452h[7{fa+fb}+32{f1+f3+f5++fn3+fn1}+12{f2+f6+f10++fn6+fn2}+14{f4+f8+f12++fn8+fn4}] Note: Do not call the function at the end of the script. The function should only output one value; suppress all other outputs. For example: Answer: (penalty regime: 0% )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
