A = (0.9917024808920823, -0.1590986895105104)
B = (1.6931982495762492, 0.36201245294058504)
C = (1.1821084752492135, 1.10359369412099)
D = (-0.5315454739649658, -0.9608081394352725)
E = (2.905783792587452, -0.9407654031871537)
f = Segment(C, D)
g = Segment(D, E)
A' = Mirror(A, f)
B' = Mirror(B, g)
h = Segment(A, A')
i = Segment(B, B')
j = Segment(A', B')
F = Intersect(j, f)
G = Intersect(g, j)
k = Segment(A, F)
l = Segment(B, G)
P = Point(f)
Q = Point(g)
n = Segment(P, Q)
p = Segment(Q, B)
m = Segment(A, P)
a = Distance(m, n)
A1: m
A2: n
A3: p
A4 = Sum(A1:A3)
text1: "AP+PQ+QB=" + (LaTeX[m]) + "+" + (LaTeX[n]) + "+" + (LaTeX[p]) + "=" + (LaTeX[A4]) + ""
H = Point(g)
I = (2.9057837925874526, -1.2714705512811193)
J = (-0.5415668420890247, -1.2614491831570598)
K = Intersect(f, g)
q1, h_1, i_1, j_1, k_1 = Polygon(H, I, J, K)
L = Point(f)
M = (0.9816811127680234, 1.2539142159818826)
N = (-0.7921010451905129, -0.8104876175743808)
q2, l_1, m_1, n_1, k_2 = Polygon(L, M, N, K)