Source: https://phylab.pagesperso-orange.fr/TS/Comprendre/TP4/Exercices-Correction.pdf