Dear Sage-Combinat devs, On Sun, Mar 15, 2009 at 07:42:21AM +0100, Nicolas M. Thiery wrote: > ... about shorthands: > ----------------- > We have had repeated (and strong!) requests from users of symmetric > functions for a one liner for getting the usual shortcuts for all the > classical bases. For once, the mathematical notations are quite > standardized in the community, and we ourselves found this very > practical: there are 5/10 of them, so redefining them all each time is > a pain. > > In fact, I'd love to be able to do: > > from SymmetricFunctions(QQ).shorthands import * > > ...
I stumbled recently into a nifty feature of the IPython interpreter allowing for easy manipulations of the global namespace of the interpreter, at the python level. Thanks to it, one can now do: sage: S = SymmetricFunctions(ZZ) sage: S.import_shorthands() sage: s[1] + e[2] * p[1,1] + 2*h[3] + m[2,1] s[1] - 2*s[1, 1, 1] + s[1, 1, 1, 1] + s[2, 1] + 2*s[2, 1, 1] + s[2, 2] + 2*s[3] + s[3, 1] sage: s Symmetric Function Algebra over Integer Ring, Schur symmetric functions as basis sage: e Symmetric Function Algebra over Integer Ring, Elementary symmetric functions as basis ... One can also just import a subset of the shorthands:: sage: S.import_shorthands(['s','p']) See the latest symmetric_functions_import.patch on the Sage-Combinat server. Of course, we will later want to generalize this feature to all our algebras with bases. Suggestions / comments welcome! Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/ -- 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.