Source: https://maths.ac-noumea.nc/IMG/pdf/Fonctions_4-carre-polynome_.pdf