Question: Write a code in Python that calculates the numerical integral of the function cos(X) in the interval -pi/2 to pi/2 of the simpson method (a

Write a code in Python that calculates the numerical integral of the function cos(X) in the interval -pi/2 to pi/2 of the simpson method (a numerical integration method) print your result, make a scale graph logarithmic of the error as a function of the number of points.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!