muEC::SG::Code2Perm – calculates a permutation from its code

The muEC::SG::Code2Perm function calculates a permutation from its Lehmer code.

Let math be the code of perm, then math is equal to the number of indices math such that math.

The argument n specifies the degree of the symmetric group.

→ Examples

Call:

muEC::SG::Code2Perm(code, <n>)

Parameters:

code

a list denoting the code of a permutation

n

the degree of a symmetric group

Related Functions:

muEC::SG::Perm2Code

Example 1:

muEC::SG::Code2Perm( [2,4,0,1] );

math

muEC::SG::Code2Perm( [2,4,0,1], 8 );

math