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

1899 days ago by matrix

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