A=matrix([[3,4+1*i],[4-1*i,6]])
a=A[0,0]
b=A[0,1]
c=A[1,1]
ac= a*c
b2= abs(b)**2
print ac
18
print b2
17
#ac>b2
#therefore A is positive definite

Strang-316-11-U (last edited 2010-12-17 04:09:36 by rupampy)