Source: https://www2.ac-lyon.fr/lyc01/cotiere/IMG/pdf/2nde___DS_no2_fonctions_et_ensembles_de_nombres.pdf