(다른교재)-exam-7-5-12-New-허재석

1855 days ago by matrix

a=matrix(3, 1, [-3,2,7]) print a*((a.transpose()*a).inverse())*a.transpose() 
       
[  9/62  -3/31 -21/62]
[ -3/31   2/31   7/31]
[-21/62   7/31  49/62]
[  9/62  -3/31 -21/62]
[ -3/31   2/31   7/31]
[-21/62   7/31  49/62]