Maple Graded vectors

Hi

I'm trying to create a maple graded question for working out if a students response is a correct eigenvector. I've been trying to get maple to solve AX = LX where A is a 2x2 matrix and X is a column vector.

I've tried the following commands and although they work in the algorithms they don't seem to work when used to grade the question. It there anyway around this problem? I think the problem is with the MatrixMatrixMultiply command.

$ans1= maple("LinearAlgebra[MatrixMatrixMultiply]($M,$RESPONSE)");
$ans2=maple("$xeig1*$RESPONSE");
$ans = maple("LinearAlgebra:-Equal($ans1,$ans2)");

Jim

I've managed to do it by

I've managed to do it by using these commands;

a:=LinearAlgebra[MatrixMatrixMultiply]($M,$RESPONSE);
b:=($xeig1*$RESPONSE);
LinearAlgebra[Equal](a,b);

Comment viewing options

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