Debian Codegraph @

texmf-dist/doc/metapost/mp-geom2d/exemples/courbes/cp07.mp

raw
1 input geom2d;
2
3 labeloffset := 6;
4 gddU:=1.2cm;
5
6 vardef f(expr t) = t/sqrt(1+t*t) enddef;
7 vardef g(expr t) = t*(1+f(t)) enddef;
8 vardef h(expr t) = -t*(1+f(t)) enddef;
9
10 beginfig(1);
11
12 Repere(6,10,3,5,2,2);
13 Axes;
14 Debut;
15 Graduations; Unites(1);
16
17 trace Droite((1,-2),(1,2)) withcolor MidnightBlue;
18
19 trace (-1,0)..Courbe(f,g,-18,18,200) avecCrayon(1.5,DarkSalmon);
20 trace (-1,0)..Courbe(f,h,-18,18,200) avecCrayon(1.5,DarkSalmon);
21
22 pointe Point(0,0);
23
24 Fin;
25 endfig;
26 end