A_1 = (-0.26096853461535857, -0.23926963450298663)
B_1 = (2.94586926508369, -0.23926963450298663)
f = Segment(A_1, B_1)
A = (0.3136857763386951, 0.399401718130115)
B = (2.3992747848770017, 1.2727891729692609)
P = Point(f)
g = Segment(A, P)
h = Segment(P, B)
A1: g
A2: h
A3 = Sum(A1:A2)
text1: "AP+BP=" + (LaTeX[g]) + "+" + (LaTeX[h]) + "=" + (LaTeX[A3]) + ""
C = Point(f)
D = Point(f)
E = (-0.25094716649129906, -0.6301029913413085)
F = (2.95589063320775, -0.6301029913413085)
G = Point(f)
q1, d, e, f_1, g_1 = Polygon(D, E, F, G)
B' = Mirror(B, f)
i = Segment(A, B')
j = Segment(B, B')