904 MrG What's a 2D Vector

2585 days ago by MATH4R2013

v=vector([2,3]) show(v) plot(v) 
       

w=vector([3,-4]) show(w) plot(w) 
       

s=v+w show(s) plot(s) 
       

d=v-w show(d) plot(d) 
       

v1=plot(v) w1=plot(w) s1=plot(s,color='red') d1=plot(d,color='green') show(v1+w1+s1+d1,aspect_ratio=1) 
       
show(v) show(abs(v)) show(3*v) show(abs(3*v)) 
       



a=plot(v) b=plot(3*v) show(a+b,aspect_ratio=1) 
       
show(2*v) show(3*w) show(2*v-3*w)