Scomposizione
Author: Battaia Luciano

O = (0, 0)
A = (1.98, -1.2)
v_1 = Vector(O, A)
B = (2.36, 0.62)
v_2 = Vector(O, B)
C = (-1.44, 2.68)
v_3 = Vector(O, C)
D = (3.9, 4)
v = Vector(O, D)
a = 1.5 (slider from 1 to 5, step 0.1)
b = 2.7 (slider from 1 to 5, step 0.1)
c = Line(O, A)
d = Line(O, B)
e = Line(O, C)
f = Line(O, D)
w_1: a * v_1
w_2: b * v_2
A_1: O + w_1
B_1: O + w_2
g = Line(B_1, c)
h = Line(A_1, d)
E = Intersect(g, h)
u = Vector(O, E)
i = Line(D, u)
j = Line(D, v_3)
F = Intersect(e, i)
k = Line(O, E)
G = Intersect(j, k)
w = Vector(O, F)
z = Vector(O, G)
l = Line(G, c)
m = Line(G, d)
H = Intersect(c, m)
n = Vector(O, H)
I = Intersect(d, l)
p = Vector(O, I)
q = Segment(H, G)
r = Segment(G, I)
s = Segment(G, D)
t = Segment(D, F)
λ_1: Length[n] / Length[v_1]
λ_2: Length[p] / Length[v_2]
λ_3: Length[w] / Length[v_3]
J = Midpoint(O, H)
K = Midpoint(O, G)
L = Midpoint(O, I)
M = Midpoint(O, F)
testo3: λ_3 + "\,v_3"
testo2: λ_2 + "\,v_2"
testo4: λ_1 + "\,v_1+" + λ_2 + "\,v_2"
testo1: λ_1 + "\,v_1"
testo5: "v=λ_1\,v_1+λ_2\,v_2+λ_3\,v_3=" + λ_1 + "\,v_1+" + λ_2 + "\,v_2+" + λ_3 + "\,v_3"