分點公式(1)
Author: 藍邦偉  老師

移動A,B與拉竿m,n觀察內分點P的變化

分點公式(1)

m=

m=

n=

n

u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
O = (0, 0)
A = (-2, 4)
B = (5, 1)
m = 2 (slider from 1 to 10, step 1)
n = 3 (slider from 1 to 10, step 1)
P: n / (m + n) * A + m / (m + n) * B
a = Vector(O, A)
b = Vector(O, B)
p = Vector(O, P)
文字2: " \overline{ PA }: \overline{ PB }=" + m + ":" + n
文字5: "= \frac{" + n + " }{" + (m + n) + " }" + A + "+ \frac{" + m + "  }{" + (m + n) + " }" + B
c = Segment(A, P)
d = Segment(P, B)
f = LineBisector(P, B)
E = Intersect(f, d)
h = Circle(E, P)
e = LineBisector(A, P)
C = Intersect(e, c)
g = Circle(C, A)
D = Intersect(g, e, 1)
F = Intersect(h, f, 1)
文字6: "" + m
文字7: "" + n
文字8: "=(" + (FractionText[(n * x(A) + m * x(B)) / (m + n)]) + "," + (FractionText[(n * y(A) + m * y(B)) / (m + n)]) + ")"
T_1 = Corner(1)
T_4 = Corner(4)
T_2: 0.7 * Corner[1] + 0.3 * Corner[2]
T_3: 0.7 * Corner[4] + 0.3 * Corner[3]
多邊形1, t_1, t_2, t_3, t_4 = Polygon(T_1, T_2, T_3, T_4)
i = Segment(T_2, T_3)
文字3: "A" + (LaTeX[A]) + ",B" + (LaTeX[B]) + ""
inputBox1 = Textfield(m)
inputBox2 = Textfield(n)
文字4: "\overrightarrow{OP} = \frac{ " + (LaTeX[n]) + " }{" + (LaTeX[m + n]) + " } \overrightarrow{OA}+ \frac{ " + (LaTeX[m]) + " }{ " + (LaTeX[m + n]) + "}  \overrightarrow{OB}"