#14041: Give the SteenrodAlgebra a proper basis object
----------------------------------+-----------------------------------------
   Reporter:  cnassau             |             Owner:  jhpalmieri      
       Type:  enhancement         |            Status:  new             
   Priority:  minor               |         Milestone:  sage-5.7        
  Component:  algebraic topology  |          Keywords:  Steenrod algebra
Work issues:                      |   Report Upstream:  N/A             
  Reviewers:                      |           Authors:  Christian Nassau
  Merged in:                      |      Dependencies:  #13856          
   Stopgaps:                      |  
----------------------------------+-----------------------------------------
 In Sage 5.6, the basis of the Steenrod algebra is not quite what it should
 be:
 {{{#!python
 sage: A=SteenrodAlgebra(7)
 sage: for k in zip((1,..,5),A.basis()):
 ....:     print k
 Traceback (most recent call last):
 ...
 IndexError: tuple index out of range
 }}}
 The attached patch uses the new `set_from_iterator`-classes to fix this:
 {{{#!python
 sage: A=SteenrodAlgebra(7)
 sage: for (idx,a) in zip((1,..,5),A.basis()):
 ...      print idx, a
 1 1
 2 Q_0
 3 P(1)
 4 Q_1
 5 Q_0 P(1)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14041>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to