Source: https://phylab.pagesperso-orange.fr/2nde/Matiere/TP7/Exercices.pdf