Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

permutation_product function

The product of two permutations.

How to write it

permutation_product(p, q)

p
A permutation. Takes a list.
q
A permutation. Takes a list.

Examples

  • permutation_product⁡([2,1,3],[1,3,2])=(132)\displaystyle \operatorname{permutation\_product}(\left[ 2, 1, 3 \right], \left[ 1, 3, 2 \right]) = \begin{pmatrix} 1 & 3 & 2 \end{pmatrix}
    permutation_product([2, 1, 3], [1, 3, 2])

    In the solver, permutation_product([2, 1, 3], [1, 3, 2]) gives [[1, 3, 2]].

    Open in the solver