跳转到内容

This page is also in English.

Read it in English

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

Léela en español

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

日本語で読む

permutation_power 函数

置换的整数次幂。

怎么写

permutation_power(p, n)

p
一个置换,写成 1、2、3 等分别被映到的位置所构成的列表。接受一个列表。
n
幂次。接受一个整数。

示例

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

    在求解器中,permutation_power([2, 3, 1], 2) 的结果是 [[1, 3, 2]]。

    在求解器中打开