| 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+1/t enddef; |
| 8 |
vardef fp(expr t) = t*t enddef; |
| 9 |
vardef gp(expr t) = t enddef; |
| 10 |
|
| 11 |
beginfig(1); |
| 12 |
|
| 13 |
Repere(12,10,5,4,0.7,0.7); |
| 14 |
Axes; |
| 15 |
Debut; |
| 16 |
Graduations; Unites(1); |
| 17 |
|
| 18 |
drawoptions(withcolor LightSlateGrey); |
| 19 |
trace Droite(Point(-4,-2),Point(4,2)); |
| 20 |
trace (3,0)--(3,2)--(0,2) dashed evenly; |
| 21 |
trace (-1,0)--(-1,-2)--(0,-2) dashed evenly; |
| 22 |
trace Courbe(fp,gp,-4,4,500); |
| 23 |
|
| 24 |
fleche Segment((3,2),(5,8/3)) avecCrayon(1,DeepPink); |
| 25 |
fleche Segment((-1,-2),(-2.8,-2)) avecCrayon(1,DeepPink); |
| 26 |
fleche Segment((-1,-2),(0.8,-2)) avecCrayon(1,DeepPink); |
| 27 |
|
| 28 |
trace Courbe(f,g,-5,-0.1,100) avecCrayon(1.5,DarkCyan); |
| 29 |
trace Courbe(f,g,0.1,5,100) avecCrayon(1.5,DarkCyan); |
| 30 |
|
| 31 |
pointe Point(0,0); |
| 32 |
pointe Point(3,2); |
| 33 |
pointe Point(-1,-2); |
| 34 |
|
| 35 |
Fin; |
| 36 |
endfig; |
| 37 |
end |