- Corrected the function definition `fonction_esperance` to use `f(x)` instead of `(1 - x)^4`. - Added code to calculate the integral using the rectangle method. - Added code to plot the graph of the rectangle method for the integral.