m_1=

n_1=

m_2=

n_2=

A = (1.64, 0.04)
B = (8.98, 0.12)
O = (2.94, 5.26)
f = Segment(O, A)
m_1: 2
n_1: 1
textfield1 = Textfield(m_1)
textfield2 = Textfield(n_1)
g = Segment(A, B)
h = Segment(B, O)
C: ((n_1 * O) + (m_1 * A)) / (m_1 + n_1)
m_2: 1
textfield3 = Textfield(m_2)
n_2: 1
textfield4 = Textfield(n_2)
D: ((m_2 * B) + (n_2 * O)) / (m_2 + n_2)
i = Segment(A, D)
j = Segment(B, C)
P = Intersect(j, i)
u = Vector(O, A)
v = Vector(O, B)
w = Vector(O, P)
m = 0.5
n = 0.25
mn = 0.75
m_3 = 2
n_3 = 1
l: m_3 + n_3
text1: "\overrightarrow{OP}=" + (LaTeX[m]) + "\vec{a}+" + (LaTeX[n]) + "\vec{b}=" + (LaTeX[mn]) + "\frac{" + (LaTeX[m_3]) + "\vec{a}+" + (LaTeX[n_3]) + "\vec{b}}{" + (LaTeX[l]) + "}"