T = gfanLeadingTerms(L)
T = gfanLeadingTerms(M)
This method produces a list of the marked terms in a marked polynomial list. If the m option is used it produces a list of the leading terms for a list of marked polynomial lists.
This functionality is already provided in Macaulay 2 by the first function.







gfan Documentation
This program converts a list of polynomials to a list of their leading terms.
Options:
m:
Do the same thing for a list of polynomial sets. That is, output the set of sets of leading terms.
The object gfanLeadingTerms is a method function with options.