| 1 |
input geom2d; |
| 2 |
|
| 3 |
beginfig(1); |
| 4 |
A = Point(0,0); |
| 5 |
B = Point(3,2); |
| 6 |
AB = Droite(A,B); |
| 7 |
F_1 = Point(-1,1); |
| 8 |
Hyper = HyperboleFD(F_1,AB,1.5); |
| 9 |
O = Centre(Hyper); |
| 10 |
F_2 = Foyer(Hyper,2); |
| 11 |
Axe = Droite(F_1,F_2); |
| 12 |
S_1 = Sommet(Hyper,1); |
| 13 |
S_2 = Sommet(Hyper,2); |
| 14 |
|
| 15 |
trace Axe dashed evenly; |
| 16 |
C = CerclePrincipale(Hyper) ; |
| 17 |
trace C avecCrayon(0.5,LightSlateGray) dashed evenly; |
| 18 |
A_1 = AsymptoteHyperbole(Hyper,1); |
| 19 |
A_2 = AsymptoteHyperbole(Hyper,2); |
| 20 |
trace A_1 dashed evenly; |
| 21 |
trace A_2 dashed evenly; |
| 22 |
|
| 23 |
D_1 = Directrice(Hyper,1); |
| 24 |
D_2 = Directrice(Hyper,2); |
| 25 |
|
| 26 |
trace D_1 avecCrayon(1.1,CornflowerBlue); |
| 27 |
trace D_2 avecCrayon(1.1,CornflowerBlue); |
| 28 |
trace DemiHyperbole(Hyper,1) avecCrayon(1.5,Crimson); |
| 29 |
trace DemiHyperbole(Hyper,2) avecCrayon(1.5,Crimson); |
| 30 |
|
| 31 |
marque.lft "O"; |
| 32 |
marque.lft "S_1"; |
| 33 |
marque.lft "S_2"; |
| 34 |
marque.lft "F_1"; |
| 35 |
marque.lft "F_2"; |
| 36 |
label.lft(textext("\(\mathcal{C}\)"),Pt(PointDe(C,0.6)) gddEnPlace) withcolor LightSlateGray; |
| 37 |
label.top(textext("\(\mathcal{D}_1\)"),Pt(PointDe(D_1,0.47)) gddEnPlace) withcolor CornflowerBlue; |
| 38 |
label.top(textext("\(\mathcal{D}_2\)"),Pt(PointDe(D_2,0.46)) gddEnPlace) withcolor CornflowerBlue; |
| 39 |
Fenetre(-4,-7,4,4); |
| 40 |
endfig; |
| 41 |
|
| 42 |
|
| 43 |
end. |