Edit the code below to compute the RREF of a matrix.
This doesn't always work, but here are some examples where it does. In the cell below, you can replace the list of variables $a, b, c$ with a list of whatever variables you want to use when you define the matrix $M.$
Let's check to see whether a set of vectors is linearly independent. We can create a matrix with the given vectors as columns; if the number of pivots is the same as the number of columns, then the columns form a linearly independent set.