Add python script of calculate numerator relationship and its invert matrix in chapter 2