Fichier jebarek.mp (figure 1) — Modifié le 13 Avril 2008 à 06 h 40

jebarek.mp (figure 1)
Source

input latexmp;
setupLaTeXMP(class="article",options="12pt",fontencoding="T1",inputencoding="latin1",language="frenchb",packages="fourier,textpathmp");
input textpath;

prologues:=2;

input geometriesyr16;

figure(-6u,-6u,6u,6u);
pair O,A,P[],M[];
O=(0,0);
path cc;
cc=cercles(O,5u);
A=4/5[O,pointarc(cc,60)];
for k=0 step 1 until 360:
  P[k]=pointarc(cc,k);
  M[k]=perpendiculaire(A,P[k],A) intersectionpoint droite(O,P[k]);
  pointe(M[k]);
endfor;
drawoptions(dashed evenly withcolor gris);
trace cc;
drawoptions(withcolor rouge);
path jebarek;
jebarek=M0
for k=1 step 1 until 360:
  --M[k]
endfor
--cycle;
trace jebarek;
drawoptions(withcolor bleu);
trace textpath("\Large Courbe de Jebarek",jebarek,0.6);
fin;
end