Source: https://iml.univ-mrs.fr/~rodier/Cours/Entropie.pdf