On Sun, Jan 3, 2010 at 6:59 AM, Nicolas M. Thiery <nicolas.thi...@u-psud.fr> wrote: > On Mon, Dec 28, 2009 at 02:49:15PM -0500, Mike Hansen wrote: >> On Sun, Dec 27, 2009 at 7:45 PM, William Stein <wst...@gmail.com> wrote: >> > What precisely is a "shorthand"? It seems like a bad name. >> > >> > Maybe >> > >> > sage: S.inject_elements() >> > >> > or >> > >> > sage: S.inject_special_elements() >> > >> > or something? Or maybe I misunderstand? >> >> Typically, when one works with symmetric functions, you want/need to >> define (at least) 5 different parents named p, m, s, e, and h. So, >> the inject_shorthands defines all of these parents and puts them in >> the namespace. > > Yup. Also, we will soon generalize this to other contexts, like root > systems, Hecke algebras, etc: > > > sage: R = RootSystem(["A",4]).weight_lattice() > sage: R.inject_shorthands() > > which would typically define: > > alpha: the simple roots (elements of R) > alphacheck: the simple coroots (elements of the dual space) > s: the simple reflections (functions from R to R) > W: the Weyl group (a group of functions from R to R) > ... > > The goal being to provide the standard short notations used by > researchers in the root system / ... community. > > Suggestions for a better name are still welcome! >
Now that you explain what it really does, I think your choice of name is sensible. I also think supporting this capability is *excellent* -- users really love this sort of thing. -- William -- 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.