~~NOTOC~~ ===== Python Help for Typical Situations in Homeworks ===== ===Packages=== The following packages should be used. In the code examples, we assume that they are imported with the aliases as bellow. import numpy as np # for matrix computation and linear algebra import matplotlib.pyplot as plt # for drawing and image I/O import scipy.io as sio # for matlab file format output ===Matrices=== When there is a matrix required as an output data, we mean matrix implemented as ''np.array''.