Nouvelles séries d'exemples : courbes en polaires
[mp-gdd.git] / exemples / polaires / pol06.mp
diff --git a/exemples/polaires/pol06.mp b/exemples/polaires/pol06.mp
new file mode 100644 (file)
index 0000000..71fce36
--- /dev/null
@@ -0,0 +1,63 @@
+input gdd;
+input gdd-rep;
+input gdd-lbl;
+input gdd-tra;
+input svgnames;
+
+lblPreambule := "\usepackage[frenchb]{babel}"       &
+                "\usepackage[garamond]{mathdesign}" &
+                "\usepackage{amsmath}";
+
+input gdd-fct;
+input gdd-plt;
+
+labeloffset := 6;
+gddU:=1.5cm;
+
+vardef r(expr t)  = cos(t)*cos(t)*cos(t)-sin(t)*sin(t)*sin(t)  enddef;
+
+vardef rp(expr t) = (r(t)*cos(t),r(t)*sin(t)) enddef;
+
+def traceDoubleVecteur(expr o,d)= drawdblarrow ((o-d)--(o+d)) gddEnPlace enddef;
+
+def avecCrayon(expr t,c) = withpen pencircle scaled t withcolor c enddef;
+
+
+a = arccos(1/sqrt(3));
+
+
+
+beginfig(1);
+
+
+ Repere(6,6,2,4,3,3);
+ Axes; 
+ Debut; 
+  Graduations; Unites(1);
+
+  drawoptions(withcolor Gainsboro);
+
+  trace (0,0)--rp(-Pi/12);
+  trace (0,0)--rp(-Pi/4);
+  trace (0,0)--rp(-5Pi/12);
+
+  traceDoubleVecteur(rp(Pi/4),(0.18,0.18)) avecCrayon(1,DarkOrchid);
+  traceDoubleVecteur(rp(-Pi/4),(0.18,0.18)) avecCrayon(1,DarkOrchid);
+  traceDoubleVecteur(rp(-Pi/12),(0.18,0.18)) avecCrayon(1,DarkOrchid);
+  traceDoubleVecteur(rp(-5Pi/12),(0.18,0.18)) avecCrayon(1,DarkOrchid);
+
+  trace CourbeEnPolaires(r,-Pi/2,Pi/2,150)  avecCrayon(1.5,Crimson);
+
+  drawoptions(withcolor LightGoldenrod);
+
+  pointe Point(0,0);
+  pointe rp(-Pi/12);
+  pointe rp(-Pi/4);
+  pointe rp(-5Pi/12);
+
+ Fin;
+
+
+endfig;
+
+end
\ No newline at end of file

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.