#13649: Implement sigma.domain() and sigma.codomain() for sigma a permutation
----------------------------+-----------------------------------------------
   Reporter:  nthiery       |             Owner:  joyner              
       Type:  enhancement   |            Status:  new                 
   Priority:  major         |         Milestone:  sage-5.5            
  Component:  group theory  |          Keywords:  beginner, agregation
Work issues:                |   Report Upstream:  N/A                 
  Reviewers:                |           Authors:                      
  Merged in:                |      Dependencies:                      
   Stopgaps:                |  
----------------------------+-----------------------------------------------
 Currently one needs to go through the parent of a permutation to get
 its domain and codomain:
 {{{
     sage: G = SymmetricGroup(8)
     sage: g = G.an_element()
     sage: g.parent().domain()
     {1, 2, 3, 4, 5, 6, 7, 8}
 }}}

 One would want to have shorthands:
 {{{
     sage: g.domain()
     {1, 2, 3, 4, 5, 6, 7, 8}
     sage: g.codomain()
 }}}

 like there are for most other maps in Sage:
 {{{
     sage: F = FiniteSetMaps(8)
     sage: f = F.an_element()
     sage: f.domain()
     {0, .., 7}
     sage: f.codomain()
     {0, .., 7}
 }}}

 Bonus points for:
 {{{
     sage: g.image()
     {1, 2, 3, 4, 5, 6, 7, 8}
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13649>
Sage <http://www.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.

Reply via email to