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

\language{fr}
\author{Guerimand Fabrice}
\email{fwguerima@free.fr}
\computeanswer{no}
\format{html}
\precision{10000}
\integer{ch=random(1..3)}
\title{Tableau de fractions.}
\text{size=50x70x1}
\text{fraction=1/2,2/3,1/3,1/5,2/5,3/5,1/6,5/6,1/7,2/7,3/7,5/7}
\text{list=shuffle(\fraction)}
\text{list=item(1,\fraction),item(2,\fraction),item(3,\fraction)}
\text{A=}
\text{B=}
\text{C=}
\text{plus=}
\for{x=1 to 3}{
\text{FT=wims(replace internal / by , in \list[\x])}
\integer{num=\FT[1]^2}
\integer{den=\FT[2]^2}
\integer{num2=\num^2}
\integer{den2=\den^2}
\if{\x=\ch}{
\text{tmp=\sqrt{\frac{\FT[1]}{\FT[2]}}}
\text{tmp=\FT[1]=1?\frac{1}{\sqrt{\FT[2]}},\tmp:\tmp}
\text{tmp=randitem(\tmp)}
\text{B=wims(append item \(\tmp) to \B)}
\text{A=wims(append item \(\frac{\FT[1]}{\FT[2]}) to \A)}
\text{C=wims(append item \(\frac{\num}{\den}) to \C)}
}{
\text{B=wims(append item \(\frac{\FT[1]}{\FT[2]}) to \B)}
\text{A=wims(append item \(\frac{\num}{\den}) to \A)}
\text{C=wims(append item \(\frac{\num2}{\den2}) to \C)}
\text{plus=wims(append item \(\sqrt{\frac{\FT[1]}{\FT[2]}}) to \plus)}
}
}
\statement{Compléter le tableau à l'aide des réponses proposées.
<table width="416" border="1" align=center height="99">
  <tr>
    <td><div align=center>\(x)</div></td>
    <td><div align=center>\A[1]</div></td>
    <td><div align=center>\embed{reply 1,\size}</div></td>
    <td><div align=center>\embed{reply 2,\size}</div></td>
  </tr>
  <tr>
    <td><div align=center>\(\sqrt{x})</div></td>
    <td><div align=center>\embed{reply 3,\size}</div></td>
    <td><div align=center>\B[2]</div></td>
    <td><div align=center>\embed{reply 4,\size}</div></td>
  </tr>
  <tr>
    <td><div align=center>\(x^2)</div></td>
    <td><div align=center>\embed{reply 5,\size}</div></td>
    <td><div align=center>\embed{reply 6,\size}</div></td>
    <td><div align=center>\C[3]</div></td>
  </tr>
</table>}
\reply{x2}{\A[2]|\A,\B,\C,\plus}{type=clickfill}
\reply{x3}{\A[3]|\A,\B,\C,\plus}{type=clickfill}
\reply{\(\sqrt{x1})}{\B[1]|\A,\B,\C,\plus}{type=clickfill}
\reply{\(\sqrt{x3})}{\B[3]|\A,\B,\C,\plus}{type=clickfill}
\reply{\(x1^2)}{\C[1]|\A,\B,\C,\plus}{type=clickfill}
\reply{\(x2^2)}{\C[2]|\A,\B,\C,\plus}{type=clickfill}
