Source: https://fr.wikiversity.org/wiki/Sommation/Exercices/Sommation_double.pdf