| 1 |
input geom2d; |
| 2 |
|
| 3 |
labeloffset := 6; |
| 4 |
gddU:=1.2cm; |
| 5 |
|
| 6 |
vardef f(expr t) = t*t-2*t enddef; |
| 7 |
vardef g(expr t) = t*t + 1/(t*t) enddef; |
| 8 |
vardef fp(expr t) = 2*t+t*t enddef; |
| 9 |
vardef gp(expr t) = t*t enddef; |
| 10 |
|
| 11 |
beginfig(1); |
| 12 |
|
| 13 |
Repere(8,10,2,1,1,1); |
| 14 |
Axes; |
| 15 |
Debut; |
| 16 |
Graduations; Unites(1); |
| 17 |
|
| 18 |
drawoptions(withcolor LightSlateGrey); |
| 19 |
trace (3,0)--(3,2)--(-1,2)--(-1,0) dashed evenly; |
| 20 |
trace (1,0)--(1,6)--(0,6) dashed evenly; |
| 21 |
trace Courbe(fp,gp,-5,5,500); |
| 22 |
|
| 23 |
fleche Segment((-1,2),(-1,2)+(0.5,2)) avecCrayon(1,Crimson); |
| 24 |
fleche Segment((3,2),(4,2)) avecCrayon(1,Crimson); |
| 25 |
fleche Segment((3,2),(2,2)) avecCrayon(1,Crimson); |
| 26 |
|
| 27 |
trace Courbe(f,g,-10,-0.05,300) avecCrayon(1.5,DarkGoldenrod); |
| 28 |
trace Courbe(f,g,0.05,10,300) avecCrayon(1.5,DarkGoldenrod); |
| 29 |
|
| 30 |
pointe Point(0,0); |
| 31 |
pointe Point(-1,2); |
| 32 |
pointe Point(3,2); |
| 33 |
pointe Point(1,6); |
| 34 |
|
| 35 |
Fin; |
| 36 |
endfig; |
| 37 |
end |