Title: Rational matrix inversion and its application to the analysis of electrical networks