f = 10 (slider from -10 to 10, step 0.1)
e = -5 (slider from -10 to 10, step 0.1)
d = 0.5 (slider from -10 to 10, step 0.1)
c = 0.5 (slider from -10 to 10, step 0.1)
b = -0.5 (slider from -10 to 10, step 0.1)
a = 0.5 (slider from -10 to 10, step 0.1)
A = (5, 5)
B = (5, -5)
C = (-5, -5)
D = (-5, 5)
poly1, a_1, b_1, c_1, d_1 = Polygon(A, B, C, D)
A', text1 = Affine(A, a, c, b, d, e, f)
B', text2 = Affine(B, a, c, b, d, e, f)
C', text3 = Affine(C, a, c, b, d, e, f)
D', text4 = Affine(D, a, c, b, d, e, f)
poly2, a', b', c', d' = Polygon(A', B', C', D')
A'', text5 = Affine(A', a, c, b, d, e, f)
B'', text6 = Affine(B', a, c, b, d, e, f)
C'', text7 = Affine(C', a, c, b, d, e, f)
D'', text8 = Affine(D', a, c, b, d, e, f)
poly3, a'', b'', c'', d'' = Polygon(A'', B'', C'', D'')
A''', text9 = Affine(A'', a, c, b, d, e, f)
B''', text10 = Affine(B'', a, c, b, d, e, f)
C''', text11 = Affine(C'', a, c, b, d, e, f)
D''', text12 = Affine(D'', a, c, b, d, e, f)
poly4, a''', b''', c''', d''' = Polygon(A''', B''', C''', D''')
A'''', text13 = Affine(A''', a, c, b, d, e, f)
B'''', text14 = Affine(B''', a, c, b, d, e, f)
C'''', text15 = Affine(C''', a, c, b, d, e, f)
D'''', text16 = Affine(D''', a, c, b, d, e, f)
poly5, a'''', b'''', c'''', d'''' = Polygon(A'''', B'''', C'''', D'''')
A''''', text17 = Affine(A'''', a, c, b, d, e, f)
B''''', text18 = Affine(B'''', a, c, b, d, e, f)
C''''', text19 = Affine(C'''', a, c, b, d, e, f)
D''''', text20 = Affine(D'''', a, c, b, d, e, f)
poly6, a''''', b''''', c''''', d''''' = Polygon(A''''', B''''', C''''', D''''')
E, text21 = Affine(A''''', a, c, b, d, e, f)
F, text22 = Affine(B''''', a, c, b, d, e, f)
G, text23 = Affine(C''''', a, c, b, d, e, f)
H, text24 = Affine(D''''', a, c, b, d, e, f)
poly7, e_1, f_1, g, h = Polygon(E, F, G, H)

Tool: Affine Transformation (command Affine)
Point, 6 numbers:a1,a2,b1,b2,c1,c2
Input: A, a_1, a_2, b_1, b_2, c_1, c_2
Output: A', T1

u = Vector((c_1, c_2))
A': (a_1 x(A) + b_1 y(A), a_2 x(A) + b_2 y(A)) + u
T1: "\left(\begin{array}{cc}" + a_1 + "&" + b_1 + "\\" + a_2 + "&" + b_2 + "\end{array}\right)\left(\begin{array}{cc}" + (x(A)) + "\\" + (y(A)) + "\end{array}\right)+\left(\begin{array}{cc}" + c_1 + "\\" + c_2 + "\end{array}\right)=\left(\begin{array}{cc}" + (x(A')) + "\\" + (y(A')) + "\end{array}\right)"