Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
To be more explicit about the mathematics involved, computer-algorithms for calculating images and kernels (and a host of other things) over commutative rings all use Groebner Bases techniques. However, for an easier necessary condition, if $gf=0$, you can tensor with the field of fractions of $R$ and do linear algebra. This cannot prove exactness, but it will quickly eliminate things that aren't exact.