next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Macaulay2Doc :: codim(ProjectiveVariety)

codim(ProjectiveVariety) -- codimension of the projective variety

Synopsis

Description

Computes the codimension of the projective 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 graded ring is an integral domain or, more generally, equidimensional.

See also