Skip to content

MatrixPower ​

Compute-engine's own MatrixPower, widened to accept a ModularMatrix or a word in place of an ordinary matrix.

✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram LanguageMatrixPower!
MatrixPower(m, k)mm raised to the integer power kk, in PSL(2,Z)\mathrm{PSL}(2,\mathbb{Z})
Typed signatures
TypePackageApplies
(matrix, real) -> matrixcompute-enginealways
(expression<ModularMatrix> | matrix | real | string, real) -> expression<ModularMatrix> | matrix | realmodularreplaces compute-enginealways

Domain: Compute engine

Examples

Basic #

An ordinary matrix is compute-engine's: the Fibonacci matrix to the tenth

live ↗
InMatrixPower([[1,1],[1,0]],10)\mathrm{MatrixPower}(\bigl\lbrack\bigl\lbrack1, 1\bigr\rbrack, \bigl\lbrack1, 0\bigr\rbrack\bigr\rbrack, 10)Out[[89,55],[55,34]]\bigl\lbrack\bigl\lbrack89, 55\bigr\rbrack, \bigl\lbrack55, 34\bigr\rbrack\bigr\rbrack

A word in LL and RR, squared in PSL(2,Z)\mathrm{PSL}(2,\mathbb{Z})

live ↗
InMatrixPower(LR,2)\mathrm{MatrixPower}(\text{LR}, 2)OutModularMatrix(2,3,3,5)\mathrm{ModularMatrix}(2, 3, 3, 5)
Scope #

A modular matrix cubed

live ↗
InMatrixPower(ModularMatrix(1,1,0,1),3)\mathrm{MatrixPower}(\mathrm{ModularMatrix}(1, 1, 0, 1), 3)OutModularMatrix(1,3,0,1)\mathrm{ModularMatrix}(1, 3, 0, 1)

A negative power is a power of the inverse

live ↗
InMatrixPower(ModularMatrix(1,1,0,1),−3)\mathrm{MatrixPower}(\mathrm{ModularMatrix}(1, 1, 0, 1), -3)OutModularMatrix(1,−3,0,1)\mathrm{ModularMatrix}(1, -3, 0, 1)
About
Examples4
Checked againstWolfram Language 1 agree1 differSageMath 1 agree1 error
CrosswalkWolfram Language

Implementation

mappedsagepackages/oracle/src/mappings.ts

See also: ModularMatrix