[math-fun] rank of a symbolic algebra matrix