input geometriesyr.mp ; %---------------------------------------------------------------------------- % Exercice 1 %---------------------------------------------------------------------------- u:=0.5cm; figure (-8u,-8u,12u,8u); pair A,B,C,D,E; C=(0,0); D=(6u,0); B=(10u,0); A=(6u,6.93u); E=3.2/8[B,A]; draw A--B--C--cycle; draw A--D; draw D--E; trace codeperp(A,D,B,5); nomme.top(A); nomme.bot(B); nomme.bot(C); nomme.bot(D); nomme.urt(E); fin; %--------------------------------------------------------------------------- %---------------------------------------------------------------------------- % Problème %---------------------------------------------------------------------------- u:=0.75cm; figure (-8u,-8u,10u,8u); pair A,B,C,D,M,P; D=(0,0); C=(8u,0); B=(8u,6u); A=(0,6u); P=3/8[A,D]; M=(3u,6u); draw A--B--C--D--cycle; draw M--P; draw B--D; label.top(btex $x$ etex, 0.5[A,M]); nomme.top(A); nomme.top(B); nomme.bot(C); nomme.bot(D); nomme.top(M); nomme.lft(P); fin; %--------------------------------------------------------------------------- %--------------------------------------------------------------------------- end ;