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

1902 days ago by matrix

o=vector([0,0,0]) #creates a vector, x= vector([component x1, component x2]) p1=vector([0,2,4]) p2=vector([3,1,0]) q=vector([2,3,4]) q1=vector([2,1,6]) q2=vector([1,3,4]) print "vector OQ=", q-o print "vector P1Q1=", q1-p1 print "vector P2Q2=", q2-p2 
       
vector OQ= (2, 3, 4)
vector P1Q1= (2, -1, 2)
vector P2Q2= (-2, 2, 4)
vector OQ= (2, 3, 4)
vector P1Q1= (2, -1, 2)
vector P2Q2= (-2, 2, 4)