Konstrukcija pravilnog peterokuta

A = (0, 0)
B = (1, 0)
poly1, a, b, c, d, e, C, D, E = Polygon(A, B, 5)
f = Segment(E, C)
g = Segment(D, B)
h = Segment(D, A)
i = Segment(A, C)
j = Segment(B, E)
F = Intersect(h, j)
G = Intersect(i, j)
poly2, k, l, m, n, p, H, I, J = Polygon(F, G, 5)
q = Segment(J, H)
r = Segment(I, G)
s = Segment(H, F)
t = Segment(G, J)
a_1 = Segment(F, I)
K = Intersect(s, t)
L = Intersect(r, s)
poly3, b_1, c_1, d_1, e_1, o, M, N, O = Polygon(K, L, 5)
f_1 = Segment(N, K)
g_1 = Segment(K, M)
h_1 = Segment(L, O)
i_1 = Segment(O, M)
j_1 = Segment(L, N)
P = Intersect(f_1, i_1)
Q = Intersect(i_1, j_1)
poly4, k_1, l_1, m_1, n_1, p_1, R, S, T = Polygon(Q, P, 5)