Use
dim,
codim, and
degree to compute the dimension, codimension and degree, respectively, of an ideal. The functions
dim and
degree compute the dimension and degree of the ring
R/I.
i1 : R = ZZ/101[x,y,z];

i2 : I = ideal(x^3y*z^2,x*yz^2,x*z);
o2 : Ideal of R

i3 : dim I
o3 = 1

i4 : codim I
o4 = 2

i5 : degree I
o5 = 2
