Source: https://www.lyceedadultes.fr/sitepedagogique/documents/math/mathTermSpe/08_calcul_integral/08_algorithme_integrale_trapeze.pdf