Source: https://hamoelotmany.github.io/Ressources/Teaching/IPSA2022/IntegrationNumeric.pdf