Title: Matrix theory of electrical machinery