Source: https://mathematoques.weebly.com/uploads/1/2/0/3/12036729/ds08_fonctions_de_ref_sg_avec_corr_2nde_2012-13.pdf