7 lblPreambule := "\usepackage[frenchb]{babel}" &
8 "\usepackage[garamond]{mathdesign}" &
9 "\usepackage{amsmath}";
17 vardef r(expr t) = cos(2t)+cos(t)*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;
26 a = arccos(1/sqrt(3));
36 Graduations; Unites(1);
38 drawoptions(withcolor LightBlue);
43 trace (0,0) -- rp(i*pas);
46 traceDoubleVecteur((0,0),0.5(cos(a),sin(a))) avecCrayon(1,MediumVioletRed);
47 traceDoubleVecteur((0,0),0.5(-cos(a),sin(a))) avecCrayon(1,MediumVioletRed);
48 traceDoubleVecteur((2,0),(0,0.5)) avecCrayon(1,MediumVioletRed);
49 traceDoubleVecteur((-2,0),(0,0.5)) avecCrayon(1,MediumVioletRed);
50 traceDoubleVecteur((0,1),(0.5,0)) avecCrayon(1,MediumVioletRed);
51 traceDoubleVecteur((0,-1),(-0.5,0)) avecCrayon(1,MediumVioletRed);
53 trace CourbeEnPolaires(r,-Pi,Pi,150) avecCrayon(1.5,DarkOliveGreen);