Is there a way to compare two lists containing polynomials to check whether they are equal?
I have a list of polynomials and then I want to get polynomials which include given variables. How can I do this?
For example, I have a list: L:=[a+b+c,x+ab+d^3,y+c];
and I am only interested in polynomials which include varaibles "a", "b", "c", which is "a+b+c".
Which command can implement this?
I have a set of equations and I want to express them into a list.
for i from 1 to 2 do
the result is:
But what I want is:
Is there any way to implement it?
When I read the contents read from a file, I found the order was different from that in file.
In file a.txt:
After reading, I stored them in a list:
L := [d+f+g, b+c+d, d+e+g, a+m+f+1, m+g+a, a+b+c];
The order is changed somehow.
The procedure I am using here is:
local line, T,L,f,cnt;
for cnt do
if line=0 then break; end if;
I want to know whether I get a row of a matrix.
For example, I have a matrix:
[ 1 0 0 1]
[ 0 1 0 1]
M=[ 1 0 1 0]
[ 0 0 0 1]
and I want to the first row [ 1 0 0 1],
how to do this?