| 1 |
input geom2d; |
| 2 |
|
| 3 |
labeloffset := 6; |
| 4 |
gddU:=1.5cm; |
| 5 |
|
| 6 |
vardef r(expr t) = cos(t)*cos(t)*cos(t)-sin(t)*sin(t)*sin(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 |
a = arccos(1/sqrt(3)); |
| 12 |
|
| 13 |
beginfig(1); |
| 14 |
|
| 15 |
Repere(6,6,2,4,3,3); |
| 16 |
Axes; |
| 17 |
Debut; |
| 18 |
Graduations; Unites(1); |
| 19 |
|
| 20 |
drawoptions(withcolor Gainsboro); |
| 21 |
|
| 22 |
trace (0,0)--rp(-Pi/12); |
| 23 |
trace (0,0)--rp(-Pi/4); |
| 24 |
trace (0,0)--rp(-5Pi/12); |
| 25 |
|
| 26 |
traceDoubleVecteur(rp(Pi/4),(0.18,0.18)) avecCrayon(1,DarkOrchid); |
| 27 |
traceDoubleVecteur(rp(-Pi/4),(0.18,0.18)) avecCrayon(1,DarkOrchid); |
| 28 |
traceDoubleVecteur(rp(-Pi/12),(0.18,0.18)) avecCrayon(1,DarkOrchid); |
| 29 |
traceDoubleVecteur(rp(-5Pi/12),(0.18,0.18)) avecCrayon(1,DarkOrchid); |
| 30 |
|
| 31 |
trace CourbeEnPolaires(r,-Pi/2,Pi/2,150) avecCrayon(1.5,Crimson); |
| 32 |
|
| 33 |
drawoptions(withcolor LightGoldenrod); |
| 34 |
|
| 35 |
pointe Point(0,0); |
| 36 |
pointe rp(-Pi/12); |
| 37 |
pointe rp(-Pi/4); |
| 38 |
pointe rp(-5Pi/12); |
| 39 |
|
| 40 |
Fin; |
| 41 |
endfig; |
| 42 |
end |