l_9

S

Z

U

W

A

B

T

C

Построения правильных многоугольников по алгоритму аль Фараби

C

G

M

N

P

R

С

D

D

I

K

E

L

G

F

H

D

E

G

K

G

C

E

D

H

K

I

F

D

C

D

E

G

I

M

K

H

F

L

CS = (-22, 8)
DS = (-10, 8)
g = Segment(CS, DS)
PS = Point(g)
Instrument = (-20, 0)
E = (-6, 14)
A = (-8, 6)
B = (-2, 6)
c = Circle(A, B)
f = Ray(B, A)
C = Intersect(c, f, 2)
D = Point(c)
F = Point(c)
d = CircumcircleArc(D, C, F)
Ret = (0, 0)
h = Segment(C, B)
i = Segment(A, B)
e = Circle(C, B)
k = Circle(B, C)
G = Intersect(e, k, 1)
H = Point(e)
p = CircumcircleArc(B, G, H)
I = Point(k)
q = CircumcircleArc(C, G, I)
j = Segment(C, G)
l = Segment(G, B)
m = Segment(G, A)
J = Midpoint(G, B)
n = Segment(C, J)
K = Intersect(m, n)
L = Intersect(m, n)
r = Circle(K, B)
s = Circle(B, A)
M = Intersect(r, s, 2)
t = Segment(M, B)
N = Midpoint(M, B)
O = Point(s)
a = OrthogonalLine(N, t)
P = Intersect(r, a, 2)
Q = Point(a)
b = Segment(N, Q)
R = Midpoint(A, B)
f_1 = Segment(N, P)
c_1 = Circle(R, f_1)
g_1 = OrthogonalLine(R, h)
S = Intersect(c_1, g_1, 2)
h_1 = Segment(R, S)
i_1 = Segment(A, S)
j_1 = Segment(S, B)
TT = Midpoint(S, B)
k_1 = OrthogonalLine(TT, j_1)
UU = Intersect(k_1, h_1)
V = Intersect(k_1, i_1)
l_1 = Segment(V, TT)
d_1 = Circle(UU, B)
e_1 = Circle(A, i)
W = Intersect(d_1, e_1, 2)
p_1 = Circle(W, A)
Z = Intersect(d_1, p_1, 2)
q_1 = Circle(S, Z)
U = Intersect(d_1, q_1, 2)
r_1 = Circle(U, S)
T = Intersect(d_1, r_1, 2)
m_1 = Segment(W, A)
n_1 = Segment(W, Z)
s_1 = Segment(Z, S)
t_1 = Segment(S, U)
a_1 = Segment(U, T)
b_1 = Segment(B, T)
A_1 = (-5.166379288777633, 19.11147966129126)
c_2 = Circle(S, 0.2)
B_1 = Point(c_2)
d_2 = Circle(Z, 0.6)
C_1 = Point(d_2)
e_2 = Circle(U, 0.2)
D_1 = Point(e_2)
f_2 = Circle(W, 1.2)
E_1 = Point(f_2)
g_2 = Circle(A, 1)
F_1 = Point(g_2)
h_2 = Circle(B, 0.8)
G_1 = Point(h_2)
k_2 = Circle(T, 0.3)
H_1 = Point(k_2)
Algo = (8, 0)
Is1 = (-6.597090282643215, 4.271090326795473)
Js1 = (3.2233703483188556, 4.234852464688603)
I_1 = (-12, 8)
J_1 = (-8, 8)
K_1 = Point(c)
L_1 = Point(s)
p_2 = CircleArc(A, B, K_1)
M_1 = Point(s)
N_1 = Intersect(c, s, 1)
O_1 = Point(s)
q_2 = CircumcircleArc(A, N_1, O_1)
r_2 = Circle(N_1, 0.3)
P_1 = Point(r_2)
i_2 = Segment(A, N_1)
j_2 = Segment(N_1, B)
s_2 = Circle(C, 1.1)
Q_1 = Point(s_2)
t_2 = Circle(G, 0.3)
R_1 = Point(t_2)
c_3 = Circle(N, 1.1)
d_3 = Circle(M, 1)
S_1 = Point(d_3)
T_1 = Point(c_3)
e_3 = Circle(P, 0.3)
U_1 = Point(e_3)
f_3 = Circle(R, 0.3)
V_1 = Point(f_3)
g_3 = Circle(A, 5)
l_2 = Line(A, B)
W_1 = Intersect(g_3, l_2, 1)
Z_1 = Intersect(g_3, l_2, 2)
h_3 = Circle(W_1, Z_1)
k_3 = Circle(Z_1, W_1)
A_2 = Intersect(h_3, k_3, 1)
m_2 = Ray(A, A_2)
B_2 = Point(k_3)
C_2 = Point(h_3)
p_3 = CircumcircleArc(W_1, A_2, B_2)
q_3 = CircumcircleArc(Z_1, A_2, C_2)
D_2 = Point(m_2)
n_2 = Segment(A, D_2)
r_3 = Circle(B, 5)
E_2 = Intersect(r_3, l_2, 2)
F_2 = Intersect(r_3, l_2, 1)
s_3 = Circle(F_2, E_2)
t_3 = Circle(E_2, F_2)
G_2 = Intersect(s_3, t_3, 1)
a_2 = Ray(B, G_2)
H_2 = Point(a_2)
b_2 = Segment(B, H_2)
I_2 = Point(s_3)
J_2 = Point(t_3)
c_4 = CircumcircleArc(F_2, G_2, J_2)
d_4 = CircumcircleArc(E_2, G_2, I_2)
K_2 = Intersect(p_2, n_2, 1)
L_2 = Intersect(q_2, b_2, 1)
M_2 = Intersect(p_2, n_2, 1)
e_4 = Circle(M_2, 0.5)
N_2 = Point(e_4)
O_2 = Point(q_2)
f_4 = Circle(O_2, 0.5)
P_2 = Point(f_4)
i_3 = Segment(K_2, L_2)
j_3 = Segment(A, K_2)
l_3 = Segment(B, L_2)
m_3 = Segment(A, M_2)
Q_2 = Midpoint(A, B)
g_4 = Circle(Q_2, 0.2)
R_2 = Point(g_4)
n_3 = Segment(M_2, Q_2)
h_4 = Circle(Q_2, Distance[A, B])
S_2 = Intersect(h_4, n_3, 1)
T_2 = Midpoint(S_2, Q_2)
k_4 = Circle(S_2, 0.2)
U_2 = Point(k_4)
p_4 = Circle(T_2, 0.2)
V_2 = Point(p_4)
a_3 = OrthogonalLine(T_2, n_3)
W_2 = Intersect(l_2, a_3)
Z_2 = Point(l_2)
A_3 = Point(a_3)
b_3 = Segment(A_3, T_2)
i_4 = Segment(Z_2, A)
q_4 = Circle(W_2, 0.4)
B_3 = Point(q_4)
r_4 = Circle(W_2, Distance[A, B])
s_4 = Circle(B, Distance[A, B])
C_3 = Intersect(r_4, i)
D_3 = Intersect(r_4, s_4, 1)
t_4 = Circle(D_3, 0.5)
E_3 = Point(t_4)
j_4 = Segment(A, D_3)
c_5 = Circle(D_3, Distance[A, B])
l_4 = Ray(A, D_3)
F_3 = Intersect(c_5, l_4, 1)
m_4 = Segment(D_3, F_3)
d_5 = Circle(F_3, 0.2)
G_3 = Point(d_5)
n_4 = Segment(F_3, B)
e_5 = Circle(F_3, Distance[A, B])
H_3 = Intersect(s_4, e_5, 2)
I_3, J_3 = Intersect(e_5, c)
f_5 = Circle(J_3, 0.5)
g_5 = Circle(H_3, 0.3)
K_3 = Point(f_5)
L_3 = Point(g_5)
a_4 = Segment(A, J_3)
b_4 = Segment(J_3, F_3)
h_5 = Segment(F_3, H_3)
i_5 = Segment(B, H_3)
j_5 = Segment(A, N_1)
k_5 = Segment(N_1, B)
l_5 = Ray(B, N_1)
m_5 = Ray(A, N_1)
p_5 = Circle(N_1, B)
M_3 = Intersect(p_5, l_5, 2)
N_3, O_3 = Intersect(p_5, m_5)
n_5 = Segment(N_1, O_3)
q_5 = Segment(M_3, N_1)
r_5 = Segment(M_3, O_3)
s_5 = Circle(M_3, 0.3)
P_3 = Point(s_5)
t_5 = Circle(O_3, 0.3)
Q_3 = Point(t_5)
c_6 = Circle(A, N_1)
d_6 = Circle(N_1, A)
R_3 = Intersect(c_6, d_6, 1)
a_5 = Segment(R_3, N_1)
b_5 = Segment(R_3, A)
e_6 = Circle(R_3, 0.7)
S_3 = Point(e_6)
f_6 = Ray(R_3, N_1)
T_3 = Intersect(p_5, f_6, 2)
g_6 = Segment(N_1, T_3)
h_6 = Circle(T_3, 0.2)
U_3 = Point(h_6)
i_6 = Segment(R_3, M_3)
j_6 = Segment(O_3, T_3)
k_6 = Segment(B, T_3)
l_6 = LineBisector(i)
V_3 = Point(l_6)
p_6 = Circle(V_3, 0.1)
W_3 = Point(p_6)
Z_3 = (-4.902882916975127, 8.293968105267243)
q_6 = Circle(V_3, Z_3)
A_4 = Intersect(q_6, l_6, 1)
r_6 = Circle(A_4, 0.1)
B_4 = Point(r_6)
s_6 = Circle(A_4, V_3)
C_4 = Intersect(q_6, s_6, 1)
D_4 = Intersect(q_6, s_6, 2)
t_6 = Circle(D_4, 0.1)
c_7 = Circle(C_4, 0.1)
E_4 = Point(t_6)
F_4 = Point(c_7)
G_4 = Rotate(D_4, 40°, V_3)
α = Angle(D_4, V_3, G_4)
H_4 = Rotate(C_4, (-(40°)), V_3)
β = Angle(H_4, V_3, C_4)
d_7 = Circle(G_4, 0.1)
e_7 = Circle(H_4, 0.1)
I_4 = Point(d_7)
J_4 = Point(e_7)
K_4 = Point(d_7)
m_6 = OrthogonalLine(A, i)
n_6 = OrthogonalLine(B, i)
a_6 = Ray(V_3, G_4)
b_6 = Ray(V_3, H_4)
L_4 = Intersect(m_6, a_6)
M_4 = Intersect(n_6, b_6)
f_7 = Circle(V_3, L_4)
g_7 = Segment(L_4, M_4)
h_7 = Segment(V_3, L_4)
i_7 = Segment(V_3, M_4)
k_7 = Circle(L_4, M_4)
N_4 = Intersect(f_7, k_7, 2)
p_7 = Circle(N_4, L_4)
O_4 = Intersect(f_7, p_7, 2)
q_7 = Circle(O_4, N_4)
P_4 = Intersect(f_7, q_7, 2)
r_7 = Circle(P_4, O_4)
Q_4 = Intersect(f_7, r_7, 2)
s_7 = Circle(Q_4, P_4)
R_4 = Intersect(f_7, s_7, 2)
t_7 = Circle(R_4, Q_4)
S_4 = Intersect(f_7, t_7, 2)
c_8 = Circle(S_4, R_4)
T_4 = Intersect(f_7, c_8, 2)
U_4 = Point(q_6)
j_7 = Segment(G_4, V_3)
l_7 = Segment(V_3, H_4)
d_8 = Circle(L_4, 0.7)
V_4 = Point(d_8)
e_8 = Circle(M_4, 0.7)
W_4 = Point(e_8)
m_7 = Segment(N_4, L_4)
n_7 = Segment(O_4, N_4)
a_7 = Segment(O_4, P_4)
b_7 = Segment(P_4, Q_4)
f_8 = Segment(Q_4, R_4)
g_8 = Segment(R_4, S_4)
h_8 = Segment(T_4, S_4)
i_8 = Segment(M_4, T_4)
Z_4, A_5 = Intersect(c, m_6)
k_8 = Circle(B, A)
j_8 = OrthogonalLine(B, i)
B_5 = Intersect(k_8, j_8, 1)
l_8 = Segment(A, Z_4)
m_8 = Segment(Z_4, B_5)
n_8 = Segment(B_5, B)
p_8 = Ray(B_5, A)
q_8 = Ray(Z_4, B)
C_5, D_5 = Intersect(c, p_8)
E_5, F_5 = Intersect(k_8, q_8)
r_8 = Segment(B_5, D_5)
s_8 = Segment(Z_4, F_5)
t_8 = Segment(A, D_5)
a_8 = Segment(B, F_5)
b_8 = Segment(D_5, F_5)
c_9 = Circle(D_5, A)
d_9 = Circle(F_5, B)
f_9 = OrthogonalLine(D_5, b_8)
g_9 = OrthogonalLine(F_5, b_8)
G_5 = Intersect(c_9, f_9, 2)
H_5 = Intersect(d_9, g_9, 2)
h_9 = Segment(D_5, G_5)
i_9 = Segment(F_5, H_5)
j_9 = Segment(G_5, H_5)
I_5 = Point(f_9)
J_5 = Point(g_9)
k_9 = Segment(G_5, I_5)
l_9 = Segment(H_5, J_5)
e_9 = Circle(G_5, D_5)
p_9 = Circle(H_5, F_5)
m_9, n_9 = AngularBisector(j_9, k_9)
q_9, r_9 = AngularBisector(j_9, l_9)
K_5 = Intersect(e_9, m_9, 2)
L_5 = Intersect(p_9, r_9, 2)
s_9 = Segment(G_5, K_5)
t_9 = Segment(H_5, L_5)
a_9 = Segment(K_5, L_5)

Tool: lyneyka
Input: A, B
Output: многоугольник1

c = Circle(A, 2)
d = Circle(B, 2)
g = Line(A, B)
C = Intersect(c, g, 1)
D = Intersect(d, g, 2)
e = Circle(C, 1)
h = Circle(D, 1)
i = OrthogonalLine(C, g)
j = OrthogonalLine(D, g)
E = Intersect(e, i, 1)
F = Intersect(h, j, 1)
многоугольник1, d_1, c_1, e_1, f_1 = Polygon(D, C, E, F)

Tool: asha
Input: I, J
Output: многоугольник1, многоугольник2, многоугольник3

h = Segment(I, J)
k = Circle(I, 1.5)
p = Circle(J, 1.5)
i = OrthogonalLine(I, h)
j = OrthogonalLine(J, h)
K = Intersect(k, i, 2)
L = Intersect(k, h, 1)
M = Intersect(p, h, 1)
N = Intersect(p, j, 2)
O = Midpoint(K, L)
P = Midpoint(M, N)
l = Ray(I, O)
m = Ray(J, P)
Q = Midpoint(O, K)
R = Midpoint(P, N)
n = Line(Q, l)
q = Line(R, m)
S = Intersect(n, m)
T = Intersect(q, l)
r = OrthogonalLine(S, h)
s = OrthogonalLine(T, h)
U = Intersect(q, r)
V = Intersect(n, s)
W = Intersect(r, l)
B_1 = Intersect(s, m)
t = OrthogonalLine(W, l)
a = OrthogonalLine(B_1, m)
Z = Intersect(t, a)
A_1 = Intersect(n, t)
C_1 = Intersect(q, a)
b = Line(Z, h)
D_1 = Intersect(r, b)
E_1 = Intersect(s, b)
f_1 = Line(A_1, C_1)
F_1 = Intersect(r, f_1)
G_1 = Intersect(s, f_1)
многоугольник1, i_1, q_1, a_1, f_2, w = Polygon(I, Q, A_1, F_1, W)
многоугольник2, j_1, r_1, c_1, g_1, b_1 = Polygon(J, R, C_1, G_1, B_1)
многоугольник3, u, v, e_1, d_1 = Polygon(U, V, E_1, D_1)

Tool: pero
Input: M_1, j_2
Output: d_3, многоугольник1, f_3, p_3

K_1 = (-4, 8)
L_1 = (2, 8)
j_2 = Segment(K_1, L_1)
p_2 = Circle(M_1, 1.5)
q_2 = Circle(M_1, 6)
r_2 = Circle(M_1, 4.5)
i_2 = OrthogonalLine(M_1, j_2)
A_2 = Intersect(p_2, i_2, 2)
B_2 = Intersect(r_2, i_2, 2)
k_3 = Circle(A_2, 0.4)
C_2 = Intersect(p_2, k_3, 1)
D_2 = Intersect(p_2, k_3, 2)
i_3 = Segment(M_1, C_2)
j_3 = Segment(M_1, D_2)
s_3 = Circle(M_1, 0.75)
E_2 = Intersect(s_3, i_3, 1)
F_2 = Intersect(s_3, j_3, 1)
l_3 = Line(C_2, i_2)
m_3 = Line(D_2, i_2)
G_2 = Intersect(q_2, l_3, 2)
H_2 = Intersect(q_2, m_3, 2)
d_3 = CircleSector(B_2, H_2, G_2)
многоугольник1, c_4, g_4, h_3, d_4 = Polygon(C_2, G_2, H_2, D_2)
f_3 = CircleSector(M_1, D_2, C_2)
p_3 = CircleSector(M_1, F_2, E_2)