Ch-1.2-exam-1-New-오충헌

1895 days ago by matrix

x=vector([1,2,3,4]) y=vector([4,3,2,1]) print x.norm() # calculate the norm of x print y.norm() # calculate the norm of y print (x-y).norm() # calculate distance 
       
sqrt(30)
sqrt(30)
2*sqrt(5)
sqrt(30)
sqrt(30)
2*sqrt(5)