Approximates the area between a polynomial function and the x-axis in the interval x=A to x=B using N rectangles