Tex error: 'The function ne() has been..'

Dear All,

I've just started using MapleTA and I'm exploring the Latex capabilities. The test question that I have constructed looks like:

\begin{question}{blanks}
\qutext{Test  \blank[formula]{\var{ans}} Test.}
\code{
$a2=Matrix([[1,2],[3,4]]);
$c=LinearAlgebra[MatrixInverse]($a2);
$a=rand(5,9,2);
$inc=int(rint(3)+2);
$b=$a-$inc;
$ans=int(10^$inc);
}
\end{question}
\end{topic}
 

However, I get the following error during latex conversion:

There is a problem generating randomized coefficients for this question:

Error initializing $c: There is a syntax error in the algorithmic expression "LinearAlgebra[MatrixInverse](Matrix([[1,2],[3,4]]))". The following error message was generated:

The function ne() has been called with the wrong number or type of arguments

 

Thanks for any help,

Colin

MapleTA question

It seems that the second and third lines of your algorithm code should be

 

$a2=maple("Matrix([[1,2],[3,4]])");
$c=maple("LinearAlgebra[MatrixInverse]($a2)");

 

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}