next up previous contents index
suivant: Inverse of a permutation monter: Permutations précédent: Product of two cycles   Table des matières   Index


Signature of a permutation : signature

signature takes as argument a permutation.
signature returns the signature of the permutation given as argument.
The signature of a permutation is equal to : The signature of a cycle of size k is : (- 1)k+1.
Input :
signature([3,4,5,2,0,1])
Output :
-1
Indeed permu2cycles([3,4,5,2,0,1])=[[0,3,2,5,1,4]].



giac documentation written by Renée De Graeve and Bernard Parisse