On Mon, Dec 28, 2009 at 02:49:15PM -0500, Mike Hansen wrote:
> On Sun, Dec 27, 2009 at 7:45 PM, William Stein <[email protected]> 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!
Cheers,
Nicolas
--
Nicolas M. Thiéry "Isil" <[email protected]>
http://Nicolas.Thiery.name/
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org