k=var('k')
a=matrix([[1,4,-2],[1,7,-6],[0,3,k]])
print a
a.det()
solve(a.det(),k)
a=matrix([[1,4,-2],[1,7,-6],[0,3,-4]])
print a
a.inverse()/*this gives error message that the matix should not be nonsingular*/

Strang-page17-14-U (last edited 2010-12-17 07:52:05 by tejaswi)