next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

exportNumInvs -- makes the numerical invariants availabe to Macaulay 2

Synopsis

Description

This function exports the data read by getNumInvs into numerical Macaulay 2 data that can be accessed directly. For each invariant a variable of type ZZ or Sequence is created whose name is the first entry of each list element shown above, prefixed by nmz. The variables created and their values are printed to the standard output.
i1 : R=ZZ/37[x,y,t];
i2 : I=ideal(x^3,x^2*y,y^3);

o2 : Ideal of R
i3 : setNmzOption("hilb",true);
i4 : intclMonIdeal(I);
i5 : exportNumInvs()
i6 : nmzHilbertBasisElements

o6 = 6
i7 : nmzHomogeneousWeights

o7 = (1, 1, -2)

o7 : Sequence
Note: This function is available even if no filename has been specified.

See also