Let R be a ring. For example, take $R=k[x_1,\ldots,x_n]$ or, if possible, $R = \Bbb{Z}[x_1,\ldots,x_n]$.
Consider a sequence of free R-modules $$R^a \stackrel{f}\to R^b \stackrel{g}\to R^c$$ where $f$ and $g$ are explicitly given by appropriately sized matrices.
How does one check (in practice, presumably(?) on a computer) whether or not this sequence is exact?