Optimisation de l'aire d'un rectangle

Le point rouge est déplaçable

inclus dans un triangle

A = Point(xAxis)
B = Point(xAxis)
C = Point(yAxis)
a = Segment(A, C)
b = Segment(C, B)
c = Segment(A, B)
X = Point(c)
d = OrthogonalLine(X, c)
D = Intersect(d, b)
e = Segment(X, D)
X' = Mirror(X, yAxis)
f = OrthogonalLine(X', c)
E = Intersect(f, a)
poly1, e_1, d_1, F, x' = Polygon(E, D, X, X')
texte3: "Aire = " + (((2 * X) * (1 - X))) + ""