\title{Ordenar números relativos}
\language{es}
\range{-5..5}
\author{Bernadette PERRIN-RIOU}
\email{bpr@math.u-psud.fr}
\computeanswer{yes}
\format{html}
\precision{10000}
\integer{m=3}
\integer{n=2}
\text{a=0}
\text{dessin=}
\for{i=-\m to \n}{
\integer{a=\i*1000}
\integer{s=\i}
\text{dessin=\dessin
text  black, \s,-1,  medium,\a}}

\real{A=-100*randint(0..10*\m-1)}
\real{B=-100*randint(0..10*\m-1)}
\real{C=-100*randint(10..10*\m-1)}
\real{D= -100*randint(10..10*\m-1)}
\real{E= -100*randint(10..10*\m-1)}
\real{F= -100*randint(10..10*\m-1)}
\text{listeA=wims(listuniq \A,\B,\C,\E,\D,\F)}
\text{choix=random(1,2)}
\text{crois=item(\choix,creciente,decreciente)}
\text{listecr=wims(sort numeric  list \listeA)}
\text{listeB=shuffle(\listeA)}
\text{listeB=wims(replace , by ,&nbsp; &nbsp; in \listeB)}
\text{listedec=wims(sort reverse numeric  list \listecr)}
\text{liste=\choix=1? \listecr:\listedec}

\statement{Ayudándose de la regla graduada, ordenar de forma \crois los siguientes números
<center> \listeB </center>

<center>\draw{600,50}
{xrange -\m-0.1,3
yrange -2,2
hline black,0,0
arrow  2.5,0,3,0,10,black
parallel  -\m,-0.8,-\m,0.4,1/2,0, 40, blue
parallel  -\m,-0.3,-\m,0.3,1/10,0, 200, blue
parallel  -\m,-0.8,-\m,0.6,1,0, 40, red
\dessin
}
</center>
}
\answer{}{\liste}{type=vector}
