Source: http://www-lor.int-evry.fr/~epsi/TQG/2015/exercices.pdf