I ran this and got some errors. Does anyone know how to solve this?
First I want to caluclate A^2(A+I)
with A = {{0, 1, 0}, {0, 0, 0}, {0, 0, -1}}
.
MatrixFunction[#^2.(# + IdentityMatrix[3]) &, {{0, 1, 0}, {0, 0,
0}, {0, 0, -1}}]
StringForm::sfr: Item 1 requested in "Cannot compute the matrix function for the function 1." out of range; 0 items available. MatrixFunction::nosol: Cannot compute the matrix function for the function 1.
Second, I want to calculate A2^k
:
A2= {{-0.5, 3}, {0, -0.8}};
MatrixFunction[#^k &, A2] //
FullSimplify[#, k > 0 && k \[Element] Integers] & // MatrixForm
MatrixFunction::fnnum: Unable to compute the matrix function because the function #1^k& at a numeric value is not numeric.
#^2(#+I)
whereI
is the identiy matrix. So how can I make that? $\endgroup$