\title{Matriz ejemplo 2x2}
\language{es}
\range{-5..5}
\author{Gang XIAO}
\email{xiao@unice.fr}
\computeanswer{no}
\format{tex}
\precision{10000}

\integer{trac=random(-20..20)}
\integer{deter=random(-20..20)}
\statement{Encontrar una matriz $A=\pmatrix{a&b\cr c&d}$ tal que
traza$(A)=\trac$ y $\det(A)=\deter$, y que ninguno de los elementos
$a,b,c,d$ sea cero.}

\answer{a}{\a}
\answer{b}{\b}
\answer{c}{\c}
\answer{d}{\d}

\condition{elements non-zero}{abs((\a)*(\b)*(\c)*(\d))>0.01}
\condition{Trace=\trac}{\a+\d=\trac}
\condition{Determinant=\deter}{(\a)*(\d)-(\b)*(\c)=\deter}