Ch+7+ex+19+김원경

2034 days ago by math2013

x1=vector([0,0,1,0]) x2=vector([1,0,1,1]) x3=vector([1,1,2,1]) A=matrix([x1,x2,x3]) [G,mu]=A.gram_schmidt() B=matrix([G.row(i)/G.row(i).norm() for i in range(0,3)]);B 
       
[          0           0           1           0]
[1/2*sqrt(2)           0           0 1/2*sqrt(2)]
[          0           1           0           0]
[          0           0           1           0]
[1/2*sqrt(2)           0           0 1/2*sqrt(2)]
[          0           1           0           0]
x1=vector([1,1,1,1]) x2=vector([-1,4,4,-1]) x3=vector([4,-2,2,0]) A=matrix([x1,x2,x3]) [G,mu]=A.gram_schmidt() B=matrix([G.row(i)/G.row(i).norm() for i in range(0,3)]);B 
       
[   1    1    1    1]
[-5/2  5/2  5/2 -5/2]
[   2   -2    2   -2]
[ 1/2  1/2  1/2  1/2]
[-1/2  1/2  1/2 -1/2]
[ 1/2 -1/2  1/2 -1/2]
[   1    1    1    1]
[-5/2  5/2  5/2 -5/2]
[   2   -2    2   -2]
[ 1/2  1/2  1/2  1/2]
[-1/2  1/2  1/2 -1/2]
[ 1/2 -1/2  1/2 -1/2]