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