PART 1:
Your task in Part 1 is to write a program that takes in:
1. the 4 coefficients of a third degree polynomial ial (ax3 + bx2 + cx + d ),
2. the range of the integral (starting and ending x values),
3. number of bins to be used
and calculates the Riemann sum approximation to the integral.
PART 2:
The Riemann sum only gives an approximation to the integral. We could in fact calculate
the actual value using the definition of the integral. For polynomials, the actual value of
the integral is found by:
1. For each term raise the power by one, and divide the term with the raised power
2. Plug in (1) the value of the bounding x value on the right
3. Plug in (1) the value of the bounding x value on the left
4. Find the difference between (2) and (3)
please help me I couldn't write the program