06-06-2015, 06:14 PM
I didn't know, but inputting M1(1..2) Prime return matrix M1 with the first 2 rows...
There is a trick to get also the first two columns like that?
Another thing:
mat:= delcols(m, (r+1) .. c);
doesn't run in a program (in Home it complains that there are two decimal dots...; in CAS gives error also): any other simple command to extract a range from a matrix?
EDIT: found this other thing:
SUB(m, {1,1}, {r,r});
Salvo
There is a trick to get also the first two columns like that?
Another thing:
mat:= delcols(m, (r+1) .. c);
doesn't run in a program (in Home it complains that there are two decimal dots...; in CAS gives error also): any other simple command to extract a range from a matrix?
EDIT: found this other thing:
SUB(m, {1,1}, {r,r});
Salvo