suivant: Checking for a cycle
monter: Permutations
précédent: Transform a permutation into
Table des matières
Index
Checking for a permutation : is_permu
is_permu is a boolean function.
is_permu takes as argument a list.
is_permu returns 1 if the argument is a permutation and returns 0 if the
argument is not a permutation.
Input :
is_permu([2,1,3])
Output :
0
Input :
is_permu([2,1,3,0])
Output :
1
giac documentation written by Renée De Graeve and Bernard Parisse