Macaulay2 » Documentation
Packages » Permutations :: extend(Permutation,Permutation)
next | previous | forward | backward | up | index | toc

extend(Permutation,Permutation) -- rewrites two permutations to be permutations on the same number of symbols

Description

For ease, we can also extend two permutations so that they are regarded as permutations on the same number of symbols. More precisely, if we have permutations $p=(p_1, \dots, p_n)$ and $q=(q_1, \dots, q_m)$, then extend(p,q) will return both $p$ and $q$ as permutations on $\text{max}(m,n)$ symbols.

i1 : p = permutation {3,1,2,5,4}

o1 = Permutation{3, 1, 2, 5, 4}

o1 : Permutation
i2 : q = permutation {2,3,1,4,5,7,6}

o2 = Permutation{2, 3, 1, 4, 5, 7, 6}

o2 : Permutation
i3 : extend(p,q)

o3 = (Permutation{3, 1, 2, 5, 4, 6, 7}, Permutation{2, 3, 1, 4, 5, 7, 6})

o3 : Sequence

See also

Ways to use this method:


The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Permutations/Documentation/mainDocs.m2:280:0.