| 1 |
input geom2d; |
| 2 |
|
| 3 |
labeloffset := 6; |
| 4 |
gddU:=0.8cm; |
| 5 |
|
| 6 |
vardef r(expr t) = 1+cos(t) enddef; |
| 7 |
vardef rp(expr t) = (r(t)*cos(t),r(t)*sin(t)) enddef; |
| 8 |
|
| 9 |
def traceDoubleVecteur(expr o,d)= drawdblarrow ((o-d)--(o+d)) gddEnPlace enddef; |
| 10 |
|
| 11 |
beginfig(1); |
| 12 |
Repere(10,10,2,5,3.5,3.5); |
| 13 |
Axes; |
| 14 |
Debut; |
| 15 |
Graduations; Unites(1); |
| 16 |
|
| 17 |
drawoptions(withcolor LightSlateGrey); |
| 18 |
draw fullcircle shifted (0.5,0) gddEnPlace avecCrayon(1,Gold); |
| 19 |
|
| 20 |
nb = 80; |
| 21 |
pas = 2Pi / nb; |
| 22 |
for i=0 upto nb: |
| 23 |
theta := i * pas; |
| 24 |
draw (fullcircle scaled 2cos(theta) |
| 25 |
shifted (cos(theta)*cos(theta),cos(theta)*sin(theta))) gddEnPlace; |
| 26 |
endfor; |
| 27 |
|
| 28 |
|
| 29 |
traceDoubleVecteur(rp(0),(0,0.3)) avecCrayon(1,LightPink); |
| 30 |
traceDoubleVecteur(rp(Pi/3),(0.3,0)) avecCrayon(1,LightPink); |
| 31 |
traceDoubleVecteur(rp(Pi/2),(0.2,0.2)) avecCrayon(1,LightPink); |
| 32 |
traceDoubleVecteur(rp(2Pi/3),(0,0.3)) avecCrayon(1,LightPink); |
| 33 |
traceDoubleVecteur(rp(-Pi/3),(0.3,0)) avecCrayon(1,LightPink); |
| 34 |
traceDoubleVecteur(rp(-Pi/2),(0.2,-0.2)) avecCrayon(1,LightPink); |
| 35 |
traceDoubleVecteur(rp(-2Pi/3),(0,0.3)) avecCrayon(1,LightPink); |
| 36 |
|
| 37 |
fleche Segment(origine,(-0.3,0)) avecCrayon(1,LightPink); |
| 38 |
trace CourbeEnPolaires(r,-Pi,Pi,100) avecCrayon(1.5,Indigo); |
| 39 |
|
| 40 |
pointe Point(0,0); |
| 41 |
pointe Point(2,0); |
| 42 |
pointe PairTOPoint(rp(Pi/3)); |
| 43 |
pointe PairTOPoint(rp(-Pi/3)); |
| 44 |
pointe PairTOPoint(rp(2Pi/3)); |
| 45 |
pointe PairTOPoint(rp(-2Pi/3)); |
| 46 |
pointe Point(0,1); |
| 47 |
pointe Point(0,-1); |
| 48 |
|
| 49 |
label.urt(textext("\(\mathcal{C}\)"),PtR(Point(1,0))) withcolor Magenta; |
| 50 |
Fin; |
| 51 |
endfig; |
| 52 |
end |