Code:Vectors

This interactive code demp plots three vectors using matplotlib. The "zero" vector, x[0], is colored blue because it is recomputed from the other two vectors, x[1] and x[2].

If you drag them around, you can see that x[0] always shows the sum,

x[1] + x[2]

By changing the "def update_vec" function, you can implement dot products, projections, and reflections.