Hi everybody, I'm new to this site, I did a search and looked through the topics but did not find anything regarding a problem I'm having with Maple 10.02 :
EDIT BELOW: Problem now solved!
While running a "for" loop containing some very very large equations the evaluation would stop and a window would say "Connection to kernel was lost." I finally determined that the mserver.exe process had quit, causing this message. I have configured my firewall to permit all communications that maple and mserver want to do.
The worksheet is a translation from an older version (Maple V R4 ...), the worksheet and the loop ran fine in Maple VR4, but I get the above mentioned problem when running the worksheet in Maple 10. I've translated the code into the updated language, but I still get the error. The loop in question is:
for i to numit do
difference[i, 1] := 1;
coef[i, 1] := 1;
for j to numdata do
gmat[j, 1] := evalf(-gFunc(coef[i, 2], coef[i, 3], data[j, 1], data[j, 2], data[j, 3]));
C[j, 1] := evalf(mk01(coef[i, 2], coef[i, 3], data[j, 1], data[j, 2]));
C[j, 2] := evalf(mkstar1(coef[i, 2], coef[i, 3], data[j, 1], data[j, 2]))
ctran := evalf(Transpose(C));
DIFFERENCE := evalf(MatrixMatrixMultiply(evalf(MatrixInverse(evalf(MatrixMatrixMultiply(ctran, C)))), evalf(MatrixMatrixMultiply(ctran, gmat))));
for k from 2 to 3 do
difference[i, k] := DIFFERENCE[k-1, 1];
coef[i+1, k] := evalf(coef[i, k]+DIFFERENCE[k-1, 1])
The expressions mk01, mkstar1, and gFunc are truly enormous equations, but memory does not seem to be the issue here, the computer does not swap at any point during evaluation.
The problem is solved.
when doing the calls
the Student package contains a smaller subset of LinearAlgebra, which do not include MatrixMatrixMultiply and MatrixInverse. When I load Student it will only load the smaller subset.
According to Maple tech support, this is intended behavior, and not a bug.
with(LinearAlgebra) solved the above problem.