7 lblPreambule := "\usepackage[frenchb]{babel}" &
8 "\usepackage[garamond]{mathdesign}" &
9 "\usepackage{amsmath}";
17 vardef r(expr t) = 1+2*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.2,5,2,2);
33 Graduations; Unites(1);
35 drawoptions(withcolor LightSlateGrey);
40 vardef rt(expr t) = 1 + (-1+i*pas)*cos(t) enddef;
41 trace CourbeEnPolaires(rt,-Pi,Pi,100) withcolor ((i/nb)[Gainsboro,Chartreuse]);
44 trace CourbeEnPolaires(r,-Pi,Pi,100) avecCrayon(1.5,LightSeaGreen);