Ch-7-Prob-18-New-김강섭

1862 days ago by matrix

v1=vector([1,1,1,0]) v2=vector([3,2,-5,0]) v3=vector([7,-8,1,0]) v4=vector([0,0,0,9]) llv1ll=v1.norm() llv2ll=v2.norm() llv3ll=v3.norm() llv4ll=v4.norm() print "x1=",; print v1/llv1ll print "x2=",; print v2/llv2ll print "x3=",; print v3/llv3ll print "x4=",; print v4/llv4ll 
       
x1= (1/3*sqrt(3), 1/3*sqrt(3), 1/3*sqrt(3), 0)
x2= (3/38*sqrt(38), 1/19*sqrt(38), -5/38*sqrt(38), 0)
x3= (7/114*sqrt(114), -4/57*sqrt(114), 1/114*sqrt(114), 0)
x4= (0, 0, 0, 1)
x1= (1/3*sqrt(3), 1/3*sqrt(3), 1/3*sqrt(3), 0)
x2= (3/38*sqrt(38), 1/19*sqrt(38), -5/38*sqrt(38), 0)
x3= (7/114*sqrt(114), -4/57*sqrt(114), 1/114*sqrt(114), 0)
x4= (0, 0, 0, 1)
xx