Quelques exemples de plus : cercles
[mp-gdd.git] / exemples / cercles / cercles1.mp
diff --git a/exemples/cercles/cercles1.mp b/exemples/cercles/cercles1.mp
new file mode 100644 (file)
index 0000000..d14064f
--- /dev/null
@@ -0,0 +1,52 @@
+input gdd;
+input gdd-rep;
+input gdd-lbl;
+input gdd-tra;
+input svgnames;
+
+lblPreambule := "\usepackage[frenchb]{babel}"       &
+                "\usepackage[garamond]{mathdesign}" &
+                "\usepackage{amsmath}";
+
+
+labeloffset := 6;
+
+gddTaillePoint := 3;
+gddCouleurPoint := Yellow;
+
+
+
+
+beginfig(1);
+
+
+ Repere(9,9,4,5,0.8,0.8);
+ Axes; 
+ Debut;
+  Axes;
+  Graduations; Unites(1);
+
+  C1 = Cercle((1,1),3);
+  C2 = Cercle((-1,-2),1);
+
+  P1 = IntersectionCercles(C1,C2);
+  P2 = IntersectionCercles(C2,C1);
+
+  drawoptions(withcolor LightSlateGrey);
+  trace C1;
+  trace C2;
+
+  drawoptions();
+  pointe Point(1,1);
+  pointe Point(-1,-2);
+  pointe P1;
+  pointe P2;
+  label.urt(TEX("\(P_1\)"),PtR(P1));
+  label.top(TEX("\(P_2\)"),PtR(P2));
+
+ 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.