Author: ABDUL BASHEER. A.M

Area of a square with side as hypertenuse of a small square will b double of the small squaree

n = 1 (slider from 0 to 1, step 0.1)
A = (-2.960090702947846, -1.9800453514739225)
D = (-6.960090702947846, -5.980045351473925)
L = (-7, -2)
m = 6.283185307179586 rad (slider from 0 to 4.71238898038469, step 0.017453292519943295)
H = (1, -2)
C = (1, -6)
B = (-2.960090702947846, -5.980045351473925)
poly1, c, a, b = Polygon(A, B, C)
poly2, d, a_1, b_1 = Polygon(A, B, D)
E = Rotate(A, -(m), C)
G = Rotate(C, -(m), C)
F = Rotate(H, -(m), C)
poly3, g, e, f = Polygon(E, F, G)
I = Rotate(A, m, D)
J = Rotate(D, m, D)
K = Rotate(L, m, D)
poly4, k, i, j = Polygon(I, J, K)
M = Dilate(A, n, D)
R = Segment(D, M)
N = Dilate(A, n, G)
W = Segment(C, N)