%% This file is generated by preprocessor!
%% Do not edit it by hand.
%% Edit the source file cpp/corr.cpp.

\language{fr}
\author{Gang XIAO}
\email{xiao@unice.fr}
\computeanswer{no}
\format{html}
\precision{10000}
\title{Correspondance égalité 5}
\integer{cnt=5}
\text{mulist=1,2,3,4,5,6,8,9,10,12}
\integer{mucnt=items(\mulist)}
\text{data=1/2,3/2,5/2,1/3,2/3,4/3,5/3,
1/4,3/4,5/4,1/5,2/5,3/5,4/5,6/5,1/6,5/6}
\text{all=}
\for{f in \data}{
 \text{ff=wims(translate / to , in \f)}
 \text{nums=wims(values \ff[1]*x for x in \mulist)}
 \text{dens=wims(values \ff[2]*x for x in \mulist)}
 \text{this=}
 \for{F=1 to \mucnt}{
  \text{this=wims(append item \nums[\F]/\dens[\F] to \this)}
 }
 \matrix{all=\all
shuffle(\this)}
}
\text{sh=shuffle(items(\data))}
\text{choice=wims(translate internal / to , in \all[\sh[1..\cnt];1,2])}
\text{left=}
\text{right=}
\for{i=1 to \cnt}{
 \text{left=wims(append item \(\choice[\i;1]/(\choice[\i;2])) to \left)}
 \text{right=wims(append item \(\choice[\i;3]/(\choice[\i;4])) to \right)}
}
\text{size=50x50x50}
\statement{Etablissez la correspondance entre
 les fractions égales.
<p><center>
\embed{reply 1,\size}
</center>
}
\reply{La correspondance}{\left;\right}{type=correspond}
