| string("1+1=", 2);
→ 1+1=2
string(intvec(1,2,3,4));
→ 1,2,3,4
string(intmat(intvec(1,2,3,4), 2, 2));
→ 1,2,3,4
ring r;
string(r);
→ (32003),(x,y,z),(dp(3),C)
string(ideal(x,y));
→ x,y
qring R = std(ideal(x,y));
string(R);
→ (32003),(x,y,z),(dp(3),C)
map phi = r, ideal(x,z);
string(phi);
→ x,z
list l;
string(l);
→
l[3] = 1;
string(l); // notice that l[1],l[2] are omitted
→ 1
l[2] = l;
l;
→ [2]:
→ [3]:
→ 1
→ [3]:
→ 1
string(l); // notice that lists of list is flattened
→ 1,1
l[1] = intvec(1,2,3);
l;
→ [1]:
→ 1,2,3
→ [2]:
→ [3]:
→ 1
→ [3]:
→ 1
string(l); // notice that intvec elements are not distinguishable
→ 1,2,3,1,1
|