Source: https://sylvainlacroix.ca/ESW/Files/SN4_FonctionQuad.pdf