Source: http://math.heig-vd.ch/fr-ch/enseignement/Cours/Complexes2013.pdf