複數與向量的加減法
Author: 藍邦偉  老師

$ O $

$ 複數的加減法與向量 $

1

$ 加法 $

2

$ 減法 $

$ A( $

$ , $

$ ) $

$ B( $

$ , $

$ ) $

k_2 = 3 (slider from -5 to 9, step 1)
h_2 = 2 (slider from -5 to 12, step 1)
k_1 = 6 (slider from -5 to 9, step 1)
h_1 = -4 (slider from -5 to 12, step 1)
u = Vector((x(Corner[1]), 0), (x(Corner[3]), 0))
v = Vector((0, y(Corner[1])), (0, y(Corner[3])))
O = (0, 0)
Q_2: 0.7 * Corner[1] + 0.3 * Corner[2]
Q_3: (x(Q_2), y(Corner[4]))
poly1, q_1, q_2, q_4, q_3 = Polygon(Corner[1], Q_2, Q_3, Corner[4])
list = Sequence(Sequence[(i, j), i, floor(x(Q_2)) + 1, floor(x(Corner[2]))], j, floor(y(Corner[1])), floor(y(Corner[3])))
B: (h_2, k_2)
A: (h_1, k_1)
w = Vector(O, A)
z = Vector(O, B)
a1: w + z
C: A + B
Add1: "$ \overrightarrow{OA}+\overrightarrow{OB} $
    $=" + (LaTeX[A]) + "+" + (LaTeX[B]) + "$
    $=" + (LaTeX[A + B]) + "$
    $=\overrightarrow{OC}$"
a = Vector(B, A)
b = Translate(a, O)
c = true
d = false
D: (x(A) - x(B), y(A) - y(B))
Add2: "$( " + (LaTeX[x(A)]) + " " + (LaTeX[If[y(A) < 0, "-", "+"]]) + "" + (LaTeX[abs(y(A))]) + "\;i)+(" + (LaTeX[x(B)]) + "" + (LaTeX[If[y(B) < 0, "-", "+"]]) + "" + (LaTeX[abs(y(B))]) + "\;i)$
$=" + (LaTeX[x(C)]) + "" + (LaTeX[If[y(C) < 0, "-", "+"]]) + "" + (LaTeX[abs(y(C))]) + "\;i$
$⇒C" + (LaTeX[C]) + "$"
Sub2: "$(" + (LaTeX[x(A)]) + "" + (LaTeX[If[y(A) < 0, "-", "+"]]) + "" + (LaTeX[abs(y(A))]) + "\;i )-(" + (LaTeX[x(B)]) + "" + (LaTeX[If[y(B) < 0, "-", "+"]]) + "" + (LaTeX[abs(y(B))]) + "\;i)$
$=" + (LaTeX[x(A - B)]) + "" + (LaTeX[If[y(A - B) < 0, "-", "+"]]) + "" + (LaTeX[abs(y(A - B))]) + "\;i$"
E = (-7.608372315141419, -3.856553197835384)
I_{h1} = Textfield(h_1)
I_{k1} = Textfield(k_1)
I_{h2} = Textfield(h_2)
I_{k2} = Textfield(k_2)
Sub1: "$ \overrightarrow{OA} -\overrightarrow{OB}$
    $=" + (LaTeX[A]) + "-" + (LaTeX[B]) + "$
    $=" + (LaTeX[A - B]) + "$
    $=\overrightarrow{BA}=\overrightarrow{OD}$"