Source: https://www.ljll.math.upmc.fr/smets/MM005/examen_anafonct2011.pdf