| ring r=0,(x,y,z),dp;
ideal i=xy;
qring q=std(i);
basering;
==> // coefficients: QQ
==> // number of vars : 3
==> // block 1 : ordering dp
==> // : names x y z
==> // block 2 : ordering C
==> // quotient ring from ideal
==> _[1]=xy
// simplification is not immediate:
(x+y)^2;
==> x2+2xy+y2
reduce(_,std(0));
==> x2+y2
// polynomial and residue class:
ring R=0,(x,y),dp;
qring Q=std(y);
poly p1=x;
poly p2=x+y;
// comparing polynomial objects:
p1==p2;
==> 0
// comparing residue classes:
reduce(p1,std(0))==reduce(p2,std(0));
==> 1
|