Inversion of the z transform