判定

リセット

switche: 1
switchd: 1
switchc: 1
switchb: 1
switcha: 1
y_5: (switche * (-1))
I = (1.5, 3)
y_4: (switchd * (-2))
G = (2, 3)
y_3: (switchc * (-2))
E = (2, 2.5)
y_2: (switchb * (-1))
C = (1.5, 1)
y_1: (switcha * (-1))
A = (0, 0)
x_1: (switcha * 0)
B: A + (x_1, y_1)
u = Vector(A, B)
x_2: (switchb * 0.5)
D: C + (x_2, y_2)
v = Vector(C, D)
x_3: (switchc * (-0.5))
F: E + (x_3, y_3)
w = Vector(E, F)
x_4: (switchd * 2)
H: G + (x_4, y_4)
a = Vector(G, H)
x_5: (switche * (-1))
J: I + (x_5, y_5)
L_1 = Sequence(RandomElement[{-1, 1}], i, 1, 5)
b = Vector(I, J)
L_2 = Sequence(If[Element[L_1, i] ≟ -1, "-", "+"], i, 1, 5)
L_3: {((switcha * x_1), (switcha * y_1)), ((switchb * x_2), (switchb * y_2)), ((switchc * x_3), (switchc * y_3)), ((switchd * x_4), (switchd * y_4)), ((switche * x_5), (switche * y_5))}
L_4 = Sequence(Vector[If[Element[L_1, i] ≟ -1, Vector[(-Element[L_3, i])], Vector[Element[L_3, i]]]], i, 1, 5)
text1 = If(Element[L_1, 1] ≟ -1, "-", "")
text3 = Element(L_2, 2)
text4 = Element(L_2, 3)
text5 = Element(L_2, 4)
text6 = Element(L_2, 5)
K = Midpoint(B, A)
L = Midpoint(C, D)
M = Midpoint(F, E)
N = Midpoint(H, G)
O = Midpoint(I, J)
text7 = If(switcha ≟ 1, "\vec{a}", "-\vec{a}")
text8 = If(switchb ≟ 1, "\vec{b}", "-\vec{b}")
text9 = If(switchc ≟ 1, "\vec{c}", "-\vec{c}")
text10 = If(switchd ≟ 1, "\vec{d}", "-\vec{d}")
text11 = If(switche ≟ 1, "\vec{e}", "-\vec{e}")
text12: "" + (LaTeX[text7]) + ""
text13: "" + (LaTeX[text8]) + ""
text14: "" + (LaTeX[text9]) + ""
text15: "" + (LaTeX[text10]) + ""
text16: "" + (LaTeX[text11]) + ""
c: Element[L_4, 1] + Element[L_4, 2] + Element[L_4, 3] + Element[L_4, 4] + Element[L_4, 5]
P = (0, 0.5)
d = Circle(P, 0.25)
e(x, y) = (x - x(P))^(2) + (y - y(P))^(2) < 0.25^(2)
text2: "\vec{f}=" + (LaTeX[text1]) + "\vec{a}" + (LaTeX[text3]) + "\vec{b}" + (LaTeX[text4]) + "\vec{c}" + (LaTeX[text5]) + "\vec{d}" + (LaTeX[text6]) + "\vec{e}\ とします。\\
このとき\vec{f}が指し示す場所にお宝があります。\\
それはどこでしょう？\\
円をその場所に持って行ってみましょう。\\
ベクトルをクリックすると逆ベクトルになります。"
Q = (-16, -9.5)
R = (-14.5, -10)
L_5 = Sequence(i, i, -2, 2, 0.5)

Tool: Tool1
Input: A
Output: h, g

B: (x(A), 0)
C: (0, y(A))
g = Segment(A, C)
h = Segment(A, B)