Source: https://math.unice.fr/~ah/ens/trc/1/ma/3fonc/fonc.pdf