-
Notifications
You must be signed in to change notification settings - Fork 1
Test
pmagwene edited this page Mar 4, 2012
·
5 revisions
>>> import numpy as np, numpy.linalg as la
>>> A = np.array([[2,2],[1,3]],np.float)
>>> A
array([[ 2., 2.],
[ 1., 3.]])
>>> evals, evecs = la.eig(A)
>>> evals
array([ 1., 4.])
>>> evecs
array([[-0.89442719, -0.70710678],
[ 0.4472136 , -0.70710678]])Does the above code example get correctly formatted?