Jack Little wrote: > Is there a way in python to do matrix multiplication and its inverse? No > external modules is preferred, but it is ok. Use numpy: >>> import numpy, numpy.linalg >>> a = numpy.array([[1, 2], [3, 4]]) >>> b = numpy.linalg.inv(a) >>> b array([[-2. , 1. ], [ 1.5, -0.5]]) >>> numpy.dot(a, b) array([[ 1., 0.], [ 0., 1.]])