First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 3 years ago

Max Alekseyev gravatar image

The question is not well posed as it not clear what particular zero coefficients you want to see and in what order. Say, you want that of e[1,1,1] but why not, say, of e[4] or e[7,4,2]?

Anyway, you can query any particular coefficient like g.coefficient([1,1,1]). And if you have any particular list of terms in mind (say, partitions of 3) you get all the corresponding coefficients as a list using list comprehension:

[ g.coefficient(p) for p in Partitions(3) ]
click to hide/show revision 2
No.2 Revision

The question is not well posed as it not clear it's unclear what particular zero coefficients you want to see and in what order. Say, you want that of e[1,1,1] but why not, say, of e[4] or e[7,4,2]?

Anyway, you can query any particular coefficient like g.coefficient([1,1,1]). And if you have any particular list of terms in mind (say, partitions of 3) you get all the corresponding coefficients as a list using list comprehension:

[ g.coefficient(p) for p in Partitions(3) ]
click to hide/show revision 3
No.3 Revision

The question is not well posed as it's unclear what particular zero coefficients you want to see and in what order. Say, you want that of e[1,1,1] but why not, say, of e[4] or e[7,4,2]?

Anyway, you can query any particular coefficient like g.coefficient([1,1,1]). And if you have any particular a list of terms in mind (say, partitions of 3) you get all the corresponding coefficients as a list using list comprehension:

[ g.coefficient(p) for p in Partitions(3) ]