On 12/07/2010 10:54 AM, Anne Schilling wrote: > Great! Could you send me some sample code? One problem I currently > have with the sage-combinat queue is that then I cannot show any > poset pictures, but tomorrow I won't have to ..
Hi Anne, Sorry for the slow response, but I realized there was a bit that I hadn't pushed to the combinat server yet (converting to symmetric functions). I've pushed now and the following should work: ---------------------------------------------------------------------- | Sage Version 4.6, Release Date: 2010-10-30 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- Loading Sage library. Current Mercurial branch is: combinat sage: SF = SymmetricFunctions(QQ); SF.inject_shorthands() /usr/local/src/sage/sage-4.6/local/lib/python2.6/site-packages/sage/combinat/sf/sf.py:390: RuntimeWarning: redefining global value `e` inject_variable(shorthand, getattr(self, shorthand)()) sage: QS = QuasisymmetricFunctions(QQ) sage: M, F = QS.Monomial(), QS.Fundamental() sage: a = F(s[3,2]); a F[1, 2, 2] + F[1, 3, 1] + F[2, 2, 1] + F[2, 3] + F[3, 2] sage: M(a) 5*M[1, 1, 1, 1, 1] + 3*M[1, 1, 1, 2] + 3*M[1, 1, 2, 1] + M[1, 1, 3] + 3*M[1, 2, 1, 1] + 2*M[1, 2, 2] + M[1, 3, 1] + 3*M[2, 1, 1, 1] + 2*M[2, 1, 2] + 2*M[2, 2, 1] + M[2, 3] + M[3, 1, 1] + M[3, 2] sage: a*M[1] F[1, 1, 2, 2] + F[1, 1, 3, 1] + F[1, 2, 1, 2] + 3*F[1, 2, 2, 1] + 2*F[1, 2, 3] + F[1, 3, 1, 1] + 3*F[1, 3, 2] + F[1, 4, 1] + F[2, 1, 2, 1] + F[2, 1, 3] + F[2, 2, 1, 1] + 4*F[2, 2, 2] + 3*F[2, 3, 1] + F[2, 4] + F[3, 1, 2] + 2*F[3, 2, 1] + 2*F[3, 3] + F[4, 2] sage: QS.to_symmetric_function(a) 5*m[1, 1, 1, 1, 1] + 3*m[2, 1, 1, 1] + 2*m[2, 2, 1] + m[3, 1, 1] + m[3, 2] sage: s(_) s[3, 2] sage: QS.to_symmetric_function(a + M[1,2,1]) # not symmetric --------------------------------------------------------------------------- ValueError Traceback (most recent call last) Let me know if you have more questions. Cheers, Jason -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.