Macaulay2 » Documentation
Packages » Varieties :: codim(Variety)
next | previous | forward | backward | up | index | toc

codim(Variety) -- codimension of a variety

Synopsis

Description

Computes the codimension of a variety V.
i1 : R = ZZ/101[x_0..x_3];
i2 : M = matrix{{x_0,x_1,x_2},{x_1,x_2,x_3}}

o2 = | x_0 x_1 x_2 |
     | x_1 x_2 x_3 |

             2      3
o2 : Matrix R  <-- R
i3 : V = Proj(R/minors(2,M));
i4 : codim V

o4 = 2

Caveat

The returned value is the usual codimension if the base ring is an integral domain or, more generally, equidimensional.

See also

Ways to use this method: