input geometriesyr.mp ; %---------------------------------------------------------------------------- % Exercice 1 %---------------------------------------------------------------------------- u:=0.5cm; figure (-u,-u,10u,5u); pair A,B,C,M,N; B=(0,0); C=(9u,0); A=(6u,4u); M=1/3[A,B]; N=1/3[A,C]; draw A--B--C--cycle; trace droite(M,N); nomme.top(A); nomme.bot(B); nomme.bot(C); nomme.ulft(M); nomme.urt(N); fin; %--------------------------------------------------------------------------- %---------------------------------------------------------------------------- % problème %---------------------------------------------------------------------------- u:=1cm; figure (-8u,-8u,8u,8u); pair A,B,C,D,E,F,G; D=(0,0); C=(6u,0); B=(6u,3u); A=(0,3u); E=(u,0); G=(5u,0); F=(3u,3u); draw A--B--C--D--cycle; draw E--F--G; trace codesegments(D,E,G,C,2); nomme.top(A); nomme.top(B); nomme.bot(C); nomme.bot(D); nomme.bot(E); nomme.top(F); nomme.bot(G); fin; %--------------------------------------------------------------------------- %--------------------------------------------------------------------------- end ;