Question: PYTHON: The integral of f(x) from a to b is the sum of f(x_i)dx. Calculate the integral of f(x) = 3x^2 from 0 to 1.

PYTHON: The integral of f(x) from a to b is the sum of f(x_i)dx. Calculate the integral of f(x) = 3x^2 from 0 to 1. Subdivide the interval from 0 to 1 into N equal divisions. Take N = 10, 20, 30, 40, 50, ...., 1000. Using matplotlib, make a plot of the error (the exact answer is 1) versus N.

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!