Ch-1.1-exam-2-New-오충헌

1896 days ago by matrix

x=vector([1,2,3]) y=vector([-2,-4,-6]) print "x+y=", x+y print "x-y=", x-y print "-2*x=", -2*x 
       
x+y= (-1, -2, -3)
x-y= (3, 6, 9)
-2*x= (-2, -4, -6)
x+y= (-1, -2, -3)
x-y= (3, 6, 9)
-2*x= (-2, -4, -6)