Do you mean the tuple is represented in the disjoint cycle notation and is a cyclic permutation? In that case, you can use:
sage: PermutationGroupElement('(3,6,4)').sign() 1 sage: PermutationGroupElement('(5,3,6,4)').sign() -1 On Mon, Jun 30, 2008 at 7:17 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---