Ch-7-Prob-16-New-이승진

1866 days ago by matrix

M=matrix(QQ,4,3,[1,1,1,1,2,4,1,-1,1,1,3,9]) M_T=M.transpose() b=matrix(QQ,4,1,[5,1,-3,-2]) x_hat=(M_T*M).inverse()*M_T*b print x_hat 
       
[  49/22]
[747/220]
[ -73/44]
[  49/22]
[747/220]
[ -73/44]