def inversion2(m11,m12,m21,m22): d=m11*m22-m12*m21 if d==0: return "La matrice M n'est pas inversible car son déterminant est nul." else: return [[m22/d,-m12/d],[-m21/d,m11/d]]