Use R ::= QQ[x,y];
I := Ideal(x,y);
J := Sprint(I);
I;
Ideal(x, y)
-------------------------------
J; -- The output for I and J looks the same, but ...
Ideal(x, y)
-------------------------------
Type(I); -- I is an ideal, and
IDEAL
-------------------------------
Type(J); -- J is just the string "Ideal(x, y)".
STRING
-------------------------------
J[1]; -- the 1st character of J
I
-------------------------------
J[2]; -- the 2nd character of J
d
-------------------------------
Len(J); -- J has 11 characters
11
-------------------------------
|