Skip to content

Instantly share code, notes, and snippets.

@joastbg
Created October 8, 2016 16:16
Show Gist options
  • Save joastbg/880b933babb9a3a6f7ca9c38dbf010b9 to your computer and use it in GitHub Desktop.
Save joastbg/880b933babb9a3a6f7ca9c38dbf010b9 to your computer and use it in GitHub Desktop.
Numpy experiments
# Computing angles of complex eigenvalues for some random matrices
for i in range(60):
M = np.matrix(np.random.rand(10,10))
w, v = LA.eig(M)
args = np.angle(w, deg=True)
print("\t\t".join(map(lambda x:str(round(x, 2)), args)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment