| 1 | initial version |
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) ]
| 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) ]
| 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) ]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.