import matplotlib.pyplot as plt from numint.RiemannSum import numint def main(): def f(x): return x**3 (a,b) = (1,2) (x, y, l, r, n) = numint(f, a, b, 0.5) # print(l, r, n) plt.step(x, y, label="x^3") plt.step(x, y, where="post", label="x^3") plt.plot(x,y, color="gray", alpha=0.3) plt.show() pass