Singular https://www.singular.uni-kl.de/forum/ |
|
List of all monomials https://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2751 |
Page 1 of 1 |
Author: | vinay [ Tue May 01, 2018 8:28 am ] |
Post subject: | List of all monomials |
Given a degree $d$, is there any way to list all monomials of degree $d$ in (decreasing / increasing) order with respect to the underlying monomial ordering? One way I can think of is using string manipulation and multiple for loops, generate all monomials and then compare and then sort! Was wondering if there is any better and efficient way! Thanks VInay |
Author: | hannes [ Wed May 02, 2018 11:28 am ] |
Post subject: | Re: List of all monomials |
Quote: maxideal(d) generates all monomials of degree d (as an ideal).If you want to have them sorted wrt. the monomial ordering, use Quote: LIB"general.lib"; sort(maxideal(d))[1]; Hans |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |