Johhny J.

asked • 07/11/20

Calculus trapezoidal and simspsons rule using python programming


this question is to be sovled using python programming


For each of the integral given below, do the following using Python Programming

a)         plot the graph related to Trapezoidal's rule or Simpson's Rule for number of intervals that have chosen from N = 5 to 20 intervals (choose one only)

b)         approximate each of the given integral using both Trapezoidal's rule and Simpson's rule using two different number of intervals for each case

1) ∫_0^2▒〖"(" x^3 "+x + 1 dx" 〗

2)∫_0^1▒〖sin⁡ (x^2)" dx" 〗

3)∫_2^4▒〖" " 1/(1+x^3 )〗 " dx"

4)∫_2^6▒〖" " 1/(ln x)〗 " dx"

Patrick B.

used online calculators for the trapezoidal, simpson's, and the actual integration. Don't have Python, but I can do Java. Don't feel like re-inventing the wheel.
Report

07/12/20

1 Expert Answer

By:

Patrick B. answered • 07/12/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.