# 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
|
|
50 | 50 | sage: a * b # a is automatically converted to an element of B |
51 | 51 | 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) |
52 | 52 | 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 |
54 | 54 | |
55 | 55 | sage: G = GL(3, GF(7)) |
56 | 56 | sage: ZG = GroupAlgebra(G) |
diff --git a/sage/groups/perm_gps/permgroup.py b/sage/groups/perm_gps/permgroup.py
a
|
b
|
|
1229 | 1229 | |
1230 | 1230 | sage: S = SymmetricGroup(['a','b','c']) |
1231 | 1231 | 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 |
1233 | 1233 | """ |
1234 | 1234 | return '\\langle ' + \ |
1235 | 1235 | ', '.join([x._latex_() for x in self.gens()]) + ' \\rangle' |
diff --git a/sage/groups/perm_gps/permgroup_element.pyx b/sage/groups/perm_gps/permgroup_element.pyx
a
|
b
|
|
573 | 573 | return self.cycle_string() |
574 | 574 | |
575 | 575 | def _latex_(self): |
576 | | """ |
| 576 | r""" |
577 | 577 | Returns a latex representation of this permutation. |
578 | 578 | |
579 | 579 | EXAMPLES:: |
… |
… |
|
584 | 584 | |
585 | 585 | sage: S = SymmetricGroup(['a', 'b']) |
586 | 586 | sage: latex(S.gens()) |
587 | | \left[(\texttt{a},\texttt{b})\right] |
| 587 | \left[(\verb|a|,\verb|b|)\right] |
588 | 588 | """ |
589 | 589 | from sage.misc.latex import latex |
590 | 590 | return "".join(["(" + ",".join([latex(x) for x in cycle])+")" for cycle in self.cycle_tuples()]) |