Suma de vectors
Author: Enric Brasó

Combinació lineal de 2 vectors

n v + m w

B = (4, 6)
A = (0, 0)
v = Vector(A, B)
n = 1 (slider from -3 to 3, step 0.1)
B': A + n * v
nv = Vector(A, B')
m = -2.7 (slider from -3 to 3, step 0.1)
C = (7, -2)
w = Vector(A, C)
C': A + m * w
mw = Vector(A, C')
D: A + nv + mw
nvmw = Vector(A, D)
polígon1, b, b', d, c' = Polygon(A, B', D, C')
text1: "n·v + m·w = " + n + "·" + v + "+" + m + "·" + w + "=" + nv + "+" + mw + "=" + nvmw + ""
nvmv' = Vector(A, D)