Mobdification de Courbe en CourbeDat dans gdd.mp, ajout des variable gddXlabel et...
[mp-gdd.git] / exemples / polaires / pol07.mp
1 input gdd;
2 input gdd-rep;
3 input gdd-lbl;
4 input gdd-tra;
5 input svgnames;
6
7 lblPreambule := "\usepackage[frenchb]{babel}"       &
8                 "\usepackage[garamond]{mathdesign}" &
9                 "\usepackage{amsmath}";
10
11 input gdd-fct;
12 input gdd-plt;
13
14 labeloffset := 6;
15 gddU:=1.5cm;
16
17 vardef r(expr t)  = 4*cos(t/3)*cos(t/3)*cos(t/3)  enddef;
18
19 vardef rp(expr t) = (r(t)*cos(t),r(t)*sin(t)) enddef;
20
21 def traceDoubleVecteur(expr o,d)= drawdblarrow ((o-d)--(o+d)) gddEnPlace enddef;
22
23 def avecCrayon(expr t,c) = withpen pencircle scaled t withcolor c enddef;
24
25
26 a = arccos(1/sqrt(3));
27
28
29
30 beginfig(1);
31
32
33  Repere(8,8,2,4,1,1);
34  Axes; 
35  Debut; 
36   Graduations; Unites(1);
37
38   drawoptions(withcolor Gainsboro);
39
40
41   trace CourbeEnPolaires(r,0,3Pi,450)
42     avecCrayon(1.5,Crimson);
43
44   drawoptions(withcolor LightGoldenrod);
45
46   pointe Point(0,0);
47
48  Fin;
49
50
51 endfig;
52
53 end

Licence Creative Commons Les fichiers de Syracuse sont mis à disposition (sauf mention contraire) selon les termes de la
Licence Creative Commons Attribution - Pas d’Utilisation Commerciale - Partage dans les Mêmes Conditions 4.0 International.