\title	{Calcular elementos de una matriz 3x2}
\language{en}
\author	{XIAO Gang}
\email	{xiao@unice.fr}
\format	{html}
\range  {-5..5}
\precision{10000}

\integer{range=10}
\integer{half=\range/2}
\integer{type=random(1,2)}
\if{\type=2}{
\matrix{A=
randint(-\range..\range),randint(-\range..\range)
randint(-\range..\range),randint(-\range..\range)
randint(-\range..\range),randint(-\range..\range)
}
\text{sizea=3&times;2}
}{
\matrix{A=
randint(-\range..\range),randint(-\range..\range),randint(-\range..\range)
randint(-\range..\range),randint(-\range..\range),randint(-\range..\range)
}
\text{sizea=2&times;3}
}
\matrix{B=2*randint(-\half..\half)+1,randint(-\range..\range)
2*randint(-\half..\half),2*randint(-\half..\half)+1
}
\text{shuf1=shuffle(2)}
\text{shuf2=shuffle(2)}
\matrix{B=pari(print(vecextract([\B],[\shuf1],[\shuf2])))}
\if{\type=1}{
 \matrix{C=pari(print([\B]*[\A]))}
 \text{B1=row(1,\B)}
 \text{B2=row(2,\B)}
 \text{C1=row(1,\C)}
 \text{C2=row(2,\C)}
}{
 \matrix{C=pari(print([\A]*[\B]))}
 \matrix{B1=wims(items2lines column(1,\B))}
 \matrix{B2=wims(items2lines column(2,\B))}
 \matrix{C1=wims(items2lines column(1,\C))}
 \matrix{C2=wims(items2lines column(2,\C))}
}

\statement{Tenemos una matriz \(A), \sizea tal que
<p><center>
\if{\type=1}{
 \([\B1]*A = [\C1]) , <br>
 \([\B2]*A = [\C2]) .
}{
 \(A*[\B1] = [\C1]) , 
 \(A*[\B2] = [\C2]) . 
}
</center> <p>
Calcular \(A).
}

\answer{A}{\A}{type=matrix}
