Ticket #5061: 5061-steenrod-ao.patch

File 5061-steenrod-ao.patch, 749 bytes (added by Kelly Boothby, 14 years ago)
  • sage/algebras/steenrod_algebra_element.py

    # HG changeset patch
    # User Tom Boothby <boothby@u.washington.edu>
    # Date 1232703604 28800
    # Node ID 92d9cdcfeebef49ab3e32d1f2978454e47f37650
    # Parent  b0aa7ef45b3ccf27b3a5196a543451335419c4c2
    Additive order of zero is 1, even in Steenrod algebras (fixes #5061)
    
    diff -r b0aa7ef45b3c -r 92d9cdcfeebe sage/algebras/steenrod_algebra_element.py
    a b  
    16851685            sage: z.additive_order()
    16861686            2
    16871687        """
    1688         return self._prime
     1688        if len(self._raw['milnor']) == 0:
     1689            return 1
     1690        else:
     1691            return self._prime
    16891692
    16901693
    16911694def Sq(*nums):