\title	{Operaciones matriciales}
\author	{XIAO Gang}
\email	{xiao@unice.fr}
\format	{html}

\text{yes=Sí}
\text{no=No}
\text{bad=\yes,\no}
\integer{c1=random(3,4)}
\integer{r1=random(3,4)}
\integer{c2=random(3,4)}
\integer{r2=random(3,4)}
\text{A=pari(print(matrix(\r1,\c1,x,y,random\(19)-10)))}
\text{B=pari(print(matrix(\r2,\c2,x,y,random\(19)-10)))}
\text{good1=\c1=\r2?\yes:\no}
\text{good2=\c2=\r1?\yes:\no}
\text{good3=\c1=\c2 and \r1=\r2?\yes:\no}
\text{good4=\c1=\r1?\yes:\no}
\text{good5=\c2=\r2?\yes:\no}

\statement{Considerar dos matrices
<p><center>
 \(A = [\A] , B = [\B]) .
</center><p>
<table border=0>
<tr><td> ¿tiene sentido? \(AB) <td>\embed{choice 1}
<tr><td> ¿tiene sentido? \(BA) <td>\embed{choice 2}
<tr><td> ¿tiene sentido? \(A+B) <td>\embed{choice 3}
<tr><td> ¿tiene sentido? \(A^2) <td>\embed{choice 4}
<tr><td> ¿tiene sentido? \(B^2) <td>\embed{choice 5}
</table>
}

\choice{AB}{\good1}{\bad}
\choice{BA}{\good2}{\bad}
\choice{A+B}{\good3}{\bad}
\choice{A<sup>2</sup>}{\good4}{\bad}
\choice{B<sup>2</sup>}{\good5}{\bad}