Created
October 8, 2016 16:16
-
-
Save joastbg/880b933babb9a3a6f7ca9c38dbf010b9 to your computer and use it in GitHub Desktop.
Numpy experiments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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