Fichier 628.jps — Modifié le 11 Mars 2006 à 10 h 53
%% PhS gh
%%
%% Èchelle et Ètendue de l'image
60 setxunit
-1 6 setxrange
-1 3.5 setyrange
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% DANGER !! Il ne faut pas utiliser de variables
%% DANGER !! qui commence par les lettres :
%% DANGER !! xmin, xmax, ymin et ymax...
%% DANGER !! Utiliser x_min, y_min...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% procÈdures
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% on donne ici x(t)
/xdet {
1 dict begin
/t exch def
t
end
} def
%% on donne ici y(t)
/ydet {
1 dict begin
/t exch def
t dup mul dup mul -0.05 mul t dup mul 0.4 mul add t -0.3 mul add 1.5 add
end
} def
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% dÈfinitions des couleurs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
/coul1 {120 255 div 70 255 div 9 255 div setrgbcolor} def
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% tracÈs
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% tracÈ des axes et du point Origine
1 setlinewidth
15 setfontsize
noir
continu
traceaxes
marks
tracerepere
2 setlinewidth
coul1
continu
-2.5 2.5 settrange
{xdet 2.5 add} {ydet} courbeparam
vert
.5 setlinewidth
/fillstyle {hachure} def
[0 0 0 -2.5 ydet 1 -1.5 ydet 2 -0.5 ydet 3 0.5 ydet 4 1.5 ydet 5 2.5 ydet 5 0] polygone*
% /fillstyle {hachure} def
% 0.5 5 {-2.5 add ydet} Fillcourbe
1 setlinewidth
noir
continu
[0 0 0 -2.5 ydet] (-) ligne
[1 0 1 -1.5 ydet] (-) ligne
[2 0 2 -0.5 ydet] (-) ligne
[3 0 3 0.5 ydet] (-) ligne
[4 0 4 1.5 ydet] (-) ligne
[5 0 5 2.5 ydet] (-) ligne
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% texte
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
setTimesItalic
vert
<latex>
$a$
</latex>
0 -0.3 [2 dup] crtexlabel
<latex>
$b$
</latex>
5 -0.4 [2 dup] cctexlabel