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^3-y*z^2,x*y-z^2,x*z); |
i3 : dim I |
i4 : codim I |
i5 : degree I |