// Question 3

M=position_2D(100)

scf(3)
clf()

plot2d(M(1,:),M(2,:))

// ou alors
//comet(M(1,:),M(2,:))

// Question 4

disp(max_distance(M(1,:),M(2,:)))

X=[1:100]
Y=[]

for i=1:100
    M=position_2D(100)
    Y=[Y,max_distance(M(1,:),M(2,:))]
end

scf(3)
clf()

plot2d(X,Y,-1)
