Suppose I have a tuple x of distinct non-negative integers. Is there a quick way to find the sign of this, as a permutation of Set(x)? (I want to view x as the one-line permutation notation form, so (3,6,4) will have sign -1, while (5,3,8,6) will have sign 1.)
The things I can find in combinat/... don't quite seem to do what I want. I can build something myself, but if there is a quick solution, I would prefer that. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---