Skip to content

Commit

Permalink
permutations: remove __xor__ operator
Browse files Browse the repository at this point in the history
This is being removed until the question of whether a.conjugate(b)
should give ~a*b*a or a*b*~a.
  • Loading branch information
smichr committed Sep 11, 2012
1 parent d6e08ca commit 09aae58
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions sympy/combinatorics/permutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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``
Expand All @@ -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
Expand Down

0 comments on commit 09aae58

Please sign in to comment.