Ch-7-Prob-15-Old-박종우

1863 days ago by matrix

A=matrix(5,5,[[1,3,5,2,-2],[-2,1,-2,1,0],[-1,-3,0,1,0],[-3,0,1,0,0],[0,1,2,-2,1]]) b=vector([1,0,1,0,0]) print A.rank() B=A.transpose() C=B*A x=C.inverse()*B*b print x 
       
5
(11/97, -5/97, 33/97, 93/97, 125/97)
5
(11/97, -5/97, 33/97, 93/97, 125/97)