Question: linalg commands seem not to be executed

Hi!

I have to maple worksheets: one called test.mw and another called wholecode.mw. I read a file with

read(filename); from both .mw sheets.

but then test.mw file gives me a correct result while wholecode.mw does not execute the linalg commands. For example, in filename there is:

for i from 1 to 8 do

    s:=col(A,i);
    A1[i] := dotprod([1, x1, x2, x3], s);

od;

while test.mw gives the result wholecode.mw just gives

A1=dotprod([1, x1, x2, x3], col(Matrix(), 1))

s= col(Matrix(A), 24)

what is wrong with the wholecode.mw file?

Thank you for suggestions!

PS: both files contain with(linalg);

Please Wait...