A

B

C

D

E

1

2

3

4

5

A

B

D

C

E

(

La col está aquí :

??

El jardinero tiene que regar la col 
pero ésta ¡no para de moverse!

?

n = 4 (slider from 1 to 5, step 1)
m = 4 (slider from 1 to 5, step 1)
b = 3
a = 2 (slider from -300 to 300, step 0.1)
A: (m - 1.0, n - 1.0)
c = Line(A, yAxis)
d = Line(A, xAxis)
B = Intersect(c, xAxis)
C = Intersect(d, yAxis)
e = Segment(C, A)
f = Segment(A, B)
D = Intersect(xAxis, yAxis)
E = Point(yAxis)
F = (5, 5)
G = Point(xAxis)
H = Point(xAxis)
I = Point(yAxis)
J = Point(yAxis)
K = Point(yAxis)
L = Point(xAxis)
M = Point(xAxis)
N = Point(xAxis)
O = (1, 5)
P = (2, 5)
Q = (3, 5)
R = (4, 5)
S = (5, 3)
T = (5, 1)
U = (5, 2)
V = (5, 4)
g = Segment(E, F)
h = Segment(G, F)
i = Segment(E, D)
j = Segment(D, G)
k = Segment(K, V)
l = Segment(J, U)
p = Segment(I, T)
q = Segment(O, L)
r = Segment(P, M)
W = Point(j)
s = Segment(Q, W)
t = Segment(R, N)
Z = Point(i)
a1 = Segment(Z, S)
A1: (x(A) + 1.0, y(A))
poly1, b1, c1, d1, e1, B1, C1 = Polygon(A, A1, 4.0)
haut = If(n ≟ 1.0, 5.0, If[n ≟ 2.0, 4.0, If[n ≟ 3.0, 3.0, If[n ≟ 4.0, 2.0, 1.0]]])
D1 = (7.114028317252214, 2.1311092130425986)
E1 = Point(yAxis)
F1 = Point(xAxis)
G1: (m - 0.5, y(E1))
f1 = Circle(G1, 0.3)
H1: (x(F1), n - 0.5)
g1 = Circle(H1, 0.3)
Ver = true
I1 = (6, 3)
J1 = (8.511014147770792, 2.9985923497355866)
K1 = (8.522280162533038, 1.9959170358956393)
L1 = (6, 2)
poly2, i1, j1, k1, l1 = Polygon(I1, J1, K1, L1)
T1: ", " + haut + " )"