ch.7 problem.13

330 days ago by g1.kjiwon

M=matrix(3, 1, [1, 2, -1]) print M*(M.transpose()*M).inverse()*M.transpose() 
       
[ 1/6  1/3 -1/6]
[ 1/3  2/3 -1/3]
[-1/6 -1/3  1/6]
[ 1/6  1/3 -1/6]
[ 1/3  2/3 -1/3]
[-1/6 -1/3  1/6]