The condition number of matrix measures how close it is to being singular

math.la.c.mat.conditionnumber