SG::Perm2Sign
--
returns the signature of a permutation
SG::Perm2Sign(perm)
perm | - | any list denoting a permutation |
The SG::Perm2Sign
function calculates the signature of a permutation. This
value is equal to
(-1)^(the length of perm
).
>> muEC::SG::Perm2Sign( [1,4,2,3] );
1
MuPAD Combinat, an open source algebraic combinatorics package