Homotècia
Author: Pep Bujosa

Longituds

Àrees

A = (2, 4)
B = (2.0000000000000004, 1)
C = (3.0000000000000018, 3)
poly1, c, a, b = Polygon(A, B, C)
Centre = (1, 2)
k = 3 (slider from 1 to 5, step 0.1)
A' = Dilate(A, k, Centre)
B' = Dilate(B, k, Centre)
C' = Dilate(C, k, Centre)
poly1', c', a', b' = Polygon(A', B', C')
d = Segment(Centre, A')
e = Segment(Centre, B')
f = Segment(Centre, C')
P1 = Perimeter(poly1)
P2 = Perimeter(poly1')
text3: " \frac{ a' }{ a}=" + (a' / a)
text4: " \frac{ b' }{b }=" + (b' / b)
text5: " \frac{ c' }{c }=" + (c' / c)
text6: " \frac{ Perímetre T2 }{Perímetre T1 }=" + (P2 / P1)
text7: " \frac{Àrea T2}{Àrea T1}=" + (poly1' / poly1)
text8: "Àrea T2 = " + poly1'
text9: "Àrea T1 =" + poly1