7 lblPreambule := "\usepackage[frenchb]{babel}" &
8 "\usepackage[garamond]{mathdesign}" &
9 "\usepackage{amsmath}";
17 vardef f(expr t) = 2*cos(t)*cos(t)*cos(t) enddef;
18 vardef g(expr t) = 2*sin(t)*sin(t)*sin(t) enddef;
20 def avecCrayon(expr t,c) = withpen pencircle scaled t withcolor c enddef;
27 Repere(8,8,4,4,1.8,1.8);
30 Graduations; Unites(1);
32 drawoptions(withpen pencircle scaled 0.5 withcolor LightSlateGrey);
33 trace ((-2,-2)--(-2,2)--(2,2)--(2,-2)--cycle);
37 for i=0 upto nb: trace (0,2*sin(i*pas))--(2*cos(i*pas),0); endfor;
39 trace Vecteur((2,0),(1.2,0)) avecCrayon(1,RoyalBlue);
40 trace Vecteur((-2,0),(-1.2,0)) avecCrayon(1,RoyalBlue);
41 trace Vecteur((0,2),(0,1.2)) avecCrayon(1,RoyalBlue);
42 trace Vecteur((0,-2),(0,-1.2)) avecCrayon(1,RoyalBlue);
44 trace Courbe(f,g,0,2*Pi,500) avecCrayon(1.5,DarkOrange);