7 lblPreambule := "\usepackage[frenchb]{babel}" &
8 "\usepackage[garamond]{mathdesign}" &
9 "\usepackage{amsmath}";
17 vardef r(expr t) = 1+cos(t) enddef;
19 vardef rp(expr t) = (r(t)*cos(t),r(t)*sin(t)) enddef;
21 def traceDoubleVecteur(expr o,d)= drawdblarrow ((o-d)--(o+d)) gddEnPlace enddef;
23 def avecCrayon(expr t,c) = withpen pencircle scaled t withcolor c enddef;
30 Repere(10,10,2,5,3.5,3.5);
33 Graduations; Unites(1);
35 drawoptions(withcolor LightSlateGrey);
37 draw fullcircle shifted (0.5,0) gddEnPlace avecCrayon(1,Gold);
43 draw (fullcircle scaled 2cos(theta)
44 shifted (cos(theta)*cos(theta),cos(theta)*sin(theta))) gddEnPlace;
48 traceDoubleVecteur(rp(0),(0,0.3)) avecCrayon(1,LightPink);
49 traceDoubleVecteur(rp(Pi/3),(0.3,0)) avecCrayon(1,LightPink);
50 traceDoubleVecteur(rp(Pi/2),(0.2,0.2)) avecCrayon(1,LightPink);
51 traceDoubleVecteur(rp(2Pi/3),(0,0.3)) avecCrayon(1,LightPink);
52 traceDoubleVecteur(rp(-Pi/3),(0.3,0)) avecCrayon(1,LightPink);
53 traceDoubleVecteur(rp(-Pi/2),(0.2,-0.2)) avecCrayon(1,LightPink);
54 traceDoubleVecteur(rp(-2Pi/3),(0,0.3)) avecCrayon(1,LightPink);
56 trace Vecteur(origine,(-0.3,0)) avecCrayon(1,LightPink);
57 trace CourbeEnPolaires(r,-Pi,Pi,100) avecCrayon(1.5,Indigo);
61 pointe PairTOPoint(rp(Pi/3));
62 pointe PairTOPoint(rp(-Pi/3));
63 pointe PairTOPoint(rp(2Pi/3));
64 pointe PairTOPoint(rp(-2Pi/3));
68 label.urt(TEX("\(\mathcal{C}\)"),PtR(Point(1,0))) withcolor Magenta;