Ticket #10335: trac_10335-updates.patch

File trac_10335-updates.patch, 2.2 KB (added by davidloeffler, 10 years ago)

apply over previous patches

  • sage/algebras/group_algebra_new.py

    # HG changeset patch
    # User David Loeffler <d.loeffler.01@cantab.net>
    # Date 1315750839 -3600
    # Node ID ad0ff2bc3b2930f0224e662fc17646ebb28b3af0
    # Parent  865dc908c93f4b210669dc5415008929c2a284e0
    #10335: updates for compatibility with 4.7.2.alpha2
    
    diff --git a/sage/algebras/group_algebra_new.py b/sage/algebras/group_algebra_new.py
    a b  
    5050    sage: a * b  # a is automatically converted to an element of B
    5151    7*() + 5*(3,4) + 3*(2,3) + 9*(2,3,4) + 3*(1,2) + 6*(1,2)(3,4) + 3*(1,2,3) + (1,2,3,4) + 9*(1,3,2) + 3*(1,3,4)
    5252    sage: parent(a * b)
    53     Group algebra of group "SymmetricGroup(4)" over base ring Rational Field
     53    Group algebra of group "Symmetric group of order 4! as a permutation group" over base ring Rational Field
    5454
    5555    sage: G = GL(3, GF(7))
    5656    sage: ZG = GroupAlgebra(G)
  • sage/groups/perm_gps/permgroup.py

    diff --git a/sage/groups/perm_gps/permgroup.py b/sage/groups/perm_gps/permgroup.py
    a b  
    12291229
    12301230            sage: S = SymmetricGroup(['a','b','c'])
    12311231            sage: latex(S)
    1232             \langle (\texttt{a},\texttt{b},\texttt{c}), (\texttt{a},\texttt{b}) \rangle
     1232            \langle (\verb|a|,\verb|b|,\verb|c|), (\verb|a|,\verb|b|) \rangle
    12331233        """
    12341234        return '\\langle ' + \
    12351235               ', '.join([x._latex_() for x in self.gens()]) + ' \\rangle'
  • sage/groups/perm_gps/permgroup_element.pyx

    diff --git a/sage/groups/perm_gps/permgroup_element.pyx b/sage/groups/perm_gps/permgroup_element.pyx
    a b  
    573573        return self.cycle_string()
    574574
    575575    def _latex_(self):
    576         """
     576        r"""
    577577        Returns a latex representation of this permutation.
    578578
    579579        EXAMPLES::
     
    584584           
    585585            sage: S = SymmetricGroup(['a', 'b'])
    586586            sage: latex(S.gens())
    587             \left[(\texttt{a},\texttt{b})\right]
     587            \left[(\verb|a|,\verb|b|)\right]
    588588        """
    589589        from sage.misc.latex import latex
    590590        return "".join(["(" + ",".join([latex(x) for x in cycle])+")" for cycle in self.cycle_tuples()])