\title	{Multiplicación diagonal 2x2}
\language{es}
\author	{XIAO Gang}
\email	{xiao@unice.fr}
\format	{tex}
\range  {-5..5}
\precision{10000}

\integer{a11=random(-9..9)}
\integer{a12=random(-9..9)}
\integer{a21=random(-9..9)}
\integer{a22=random(-9..9)}
\integer{c1=random(1..19)*random(-1,1)}
\integer{c2=random(1..19)*random(-1,1)}
\integer{side=random(1,2)} # left, right
\integer{anstype=random(1,2)}
\integer{ele=random(1,2)}
\integer{add1=random(-2*(\c1),-(\c1),\c1,2*(\c1))}
\integer{add2=random(-2*(\c2),-(\c2),\c2,2*(\c2))}
\integer{b11=\anstype=2 and \ele=1?\c1*(\a11)+(\add1):\c1*(\a11)}
\integer{b22=\anstype=2 and \ele=2?\c2*(\a22)+(\add2):\c2*(\a22)}
\integer{b12=\side=1?\c1*(\a12):\c2*(\a12)}
\integer{b21=\side=1?\c2*(\a21):\c1*(\a21)}
\text{mult=\side=1?D\pmatrix{\a11&\a12\cr \a21&\a22}:
		   \pmatrix{\a11&\a12\cr \a21&\a22}D}
\text{good=\anstype=1?Yes:No}

\statement{¿Existe una matriz diagonal $D$ tal que
$$\mult=\pmatrix{\b11&\b12\cr \b21&\b22}?$$}

\choice{La réponse}{\good}{Sí,No}