Macaulay2 » Documentation
Packages » MultiplicitySequence :: getGenElts
next | previous | forward | backward | up | index | toc

getGenElts -- general elements of an ideal cutting down the codimension

Description

This function produces a list of n elements of I whose first j entries generate an ideal of codimension j, for each j from 1 to n. Such general elements underlie the "genElts" strategy of multiplicitySequence.

The elements are random combinations of the generators of I, so the output varies between runs; setRandomSeed makes it reproducible.

i1 : R = QQ[x,y,z];
i2 : I = ideal "xy,yz,zx";

o2 : Ideal of R
i3 : setRandomSeed 0;
 -- setting random seed to 0
i4 : getGenElts(I, 2)

      7      7      3     5      7      3
o4 = {-x*y + -x*z + -y*z, -x*y + -x*z + -y*z}
      9      4      4     6      8      2

o4 : List

See also

Ways to use getGenElts:

  • getGenElts(Ideal,ZZ)

For the programmer

The object getGenElts is a method function with options.


The source of this document is in /build/reproducible-path/macaulay2-1.26.06+ds/M2/Macaulay2/packages/MultiplicitySequence.m2:713:0.