#in this example we have to solve a system of linear equations
w=np.mat('1 1;0.7071-0.7071j 0.7071+0.7071j')
a=np.array([1,0])
x=np.linalg.solve(w,a)
print "The optimum values of w1 and w2 which guarantee maximum signal-to-interference ratio at theta=0:",x