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