Source: https://applilocale.ac-besancon.fr/geogebra/TICE/informatique/coin_libre/doc/foncs_def_intervall.pdf