回転させる

増やす

減らす

円形に並べたとき、見た目は違っても回転させると同じ並べ方があります。\
それは何通りあるか考えてみましょう。

n = 4 (slider from 2 to 10, step 1)
L_1 = Sequence((cos(theta), sin(theta)), theta, 0, (2 * π), (2 * π / n))
r = 0.3 (slider from -5 to 5, step 0.1)
rotate = 0 (slider from 0 to ((2 * π / n) * Count), step 0.001)
P_{1}: (2, 0)
P_{2}: (3, 0)
L_3 = Sequence((cos(theta + rotate), sin(theta + rotate)), theta, 0, (2 * π), (2 * π / n))
Count = 0 (slider from 0 to n, step 1)
C_{1} = Circle(P_{1}, 0.2)
C_{2} = Circle(P_{2}, 0.2)
text_{1} = Text("1")
text_{2} = Text("2")
L_2 = Sequence(Circle[Element[L_3, i], r], i, 1, n, 1)
text_{3} = Text("3")
P_{3}: (4, 0)
C_{3} = Circle(P_{3}, 0.2)
text_{4} = Text("4")
P_{4}: (2, 1)
C_{4} = Circle(P_{4}, 0.2)
Q_{1} = ClosestPoint(L_3, P_{1})
Q_{2} = ClosestPoint(L_3, P_{2})
Q_{3} = ClosestPoint(L_3, P_{3})
Q_{4} = ClosestPoint(L_3, P_{4})

Tool: Tool1
Input: A
Output: h, g

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