#6638: Implement a way to import default shortcuts, say from
SymmetricFunctions(QQ)
---------------------------+------------------------------------------------
Reporter: nthiery | Owner: mhansen
Type: enhancement | Status: new
Priority: major | Milestone:
Component: combinatorics | Keywords:
Reviewer: | Author:
Merged: |
---------------------------+------------------------------------------------
Changes (by nthiery):
* type: defect => enhancement
Old description:
> Implement a way to import default shortcuts, say from
> SymmetricFunctions(QQ), WeylGroups(["A",3]), or RootSystem(["A",3])
>
> Option 1:
> {{{
> sage: Sym = SymmetricFunctions(QQ)
> sage: %from Sym.shortcuts() import *
> sage: s[3] + h[2]
> s[3] + s[2]
>
> sage: %from Sym.shortcuts() import s, h, p
>
> sage: Sym.shorcuts()
> { s: SymmetricFunctions in the Schur basis,
> h: SymmetricFunctions in the complete basis,
> ...
> }
> }}}
>
> Option 2:
> {{{
> sage: Sym = SymmetricFunctions(QQ)
> sage: Sym.import_shortcuts()
> sage: s[3] + h[2]
> s[3] + s[2]
>
> sage: Sym.import_shortcuts("s", "h", "p")
> }}}
New description:
Implement a way to import default shortcuts, say from
SymmetricFunctions(QQ), WeylGroups(["A",3]), or RootSystem(["A",3])
Option 1:
{{{
sage: Sym = SymmetricFunctions(QQ)
sage: %from Sym.shortcuts() import *
sage: s[3] + h[2]
s[3] + s[2]
sage: %from Sym.shortcuts() import s, h, p
sage: Sym.shorcuts()
{ s: SymmetricFunctions in the Schur basis,
h: SymmetricFunctions in the complete basis,
...
}
}}}
Option 2:
{{{
sage: Sym = SymmetricFunctions(QQ)
sage: Sym.import_shortcuts()
sage: s[3] + h[2]
s[3] + s[2]
sage: Sym.import_shortcuts("s", "h", "p")
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6638#comment:1>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---