Browse files

permutations: remove __xor__ operator

This is being removed until the question of whether a.conjugate(b)
should give ~a*b*a or a*b*~a.
  • Loading branch information...
1 parent d6e08ca commit 09aae5884e34f91466d32337fe2940911d1dc862 @smichr committed Sep 10, 2012
Showing with 2 additions and 11 deletions.
  1. +2 −11 sympy/combinatorics/permutations.py
View
13 sympy/combinatorics/permutations.py
@@ -1883,9 +1883,6 @@ def inversions(self):
k = k * 2
return inversions
- def __xor__(self, other):
- return self.conjugate(other)
-
def conjugate(self, x):
"""
Computes the conjugate permutation ``c = x*p*~x``
@@ -1909,14 +1906,8 @@ def conjugate(self, x):
x*p*~x is not necessarily equal to ~x*p*x:
- >>> ~x*p*x
- Permutation([3, 1, 0, 2])
-
- The ^ operator can be used to compute the conjugate:
-
- >>> x^p
- Permutation([3, 1, 0, 2])
-
+ >>> ~x*p*x == x*p*~x
+ False
"""
a = self.array_form

0 comments on commit 09aae58

Please sign in to comment.