| 1 |
input geom2d; |
| 2 |
|
| 3 |
labeloffset := 6; |
| 4 |
gddU:=1.5cm; |
| 5 |
|
| 6 |
vardef r(expr t) = 4*cos(t/3)*cos(t/3)*cos(t/3) 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 |
|
| 12 |
|
| 13 |
beginfig(1); |
| 14 |
Repere(8,8,2,4,1,1); |
| 15 |
Axes; |
| 16 |
Debut; |
| 17 |
Graduations; Unites(1); |
| 18 |
|
| 19 |
drawoptions(withcolor Gainsboro); |
| 20 |
|
| 21 |
trace CourbeEnPolaires(r,0,3Pi,450) |
| 22 |
avecCrayon(1.5,Crimson); |
| 23 |
|
| 24 |
drawoptions(withcolor LightGoldenrod); |
| 25 |
|
| 26 |
pointe Point(0,0); |
| 27 |
Fin; |
| 28 |
endfig; |
| 29 |
end |