October 2018
Beginner to intermediate
676 pages
18h 30m
English
The following code block plots a polynomial of the third y = x ** 3 order and plots the area under this curve between two points on the x axis, which is the integral of the function limited by the two points:
a, b = 5, 9 # integral limits in which the area to be plottedx = np.linspace(0, 10)y = x ** 3 # 3rd order Polynomial curve
fig, ax = plt.subplots()plt.plot(x, y, 'r', linewidth=2)plt.ylim(0)
intx = np.linspace(a, b)inty = intx ** 3verts = [(a, ...
Read now
Unlock full access