Source: http://pierrelux.net/documents/cours/2_2010/4-fonctions/exercices_fonctions.pdf