reset()
var('a,b')
A = matrix([[a,b],[b,a]])
print "Matrix A:"
show(A)
print "eigen values of matrix A = ",A.eigenvalues()
B = matrix([[3,4],[4,-3]])
print "Matrix B:"
show(B)
print "eigen values of matrix B = ",B.eigenvalues()

Strang-5.1-15-U (last edited 2010-12-17 09:21:12 by tonylijo)