HP Prime for All

English  Русский 

Syntax

matpow(Mtrx,Intg(n))

Description

Calculates the n power of a matrix by jordanization.

Example

matpow([[1,2],[3,4]],n) returns [[(√33-3)*((√33+5)/2)^n*-6/(-12*√33)+(-(√33)-3)*((-(√33)+5)/2)^n*6/(-12*√33),(√33-3)*((√33+5)/2)^n*(-(√33)-3)/(-12*√33)+(-(√33)-3)*((-(√33)+5)/2)^n*(-(√33)+3)/(-12*√33)],[6*((√33+5)/2)^n*-6/(-12*√33)+6*((-(√33)+5)/2)^n*6/(-12*√33),6*((√33+5)/2)^n*(-(√33)-3)/(-12*√33)+6*((-(√33)+5)/2)^n*(-(√33)+3)/(-12*√33)]]

matpow — Discussion