Source: https://jeanvilar.net/depot/maths/hameau/fonctions.pdf