Maxima Function
rank (M)
Return the rank of that matrix M. The rank is the dimension of the column space. Example:
(%i1) rank(matrix([1,2],[2,4])); (%o1) 1 (%i2) rank(matrix([1,b],[c,d])); Proviso: {d - b c # 0} (%o2) 2