Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: List of all monomials
PostPosted: Tue May 01, 2018 8:28 am 

Joined: Sat Oct 01, 2005 11:40 am
Posts: 40
Location: IIT Guwahati, Guwahati, Assam, INDIA
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: List of all monomials
PostPosted: Wed May 02, 2018 11:28 am 

Joined: Wed May 25, 2005 4:16 pm
Posts: 275
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:56 am
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group