Compute A³ for a 2x2 matrix A via two sequential multiplications:
first A² = A · A, then A³ = A² · A. Each step reuses the shared
matmul emitter, so the state panel fills in P = A² entry by entry, then
C = A³ entry by entry, with running sums shown throughout.
Example
Compute A squared first, then use it to fill A cubed.
highlighted = computed this step
Step 1 — Set up
Start with the given matrix data.
A=[1011],P=[□□□□],Q=[□□□□]
Step 2 — A^2 Top-Left entry
Fill top-left entry: 1*1 + 1*0 = 1.
P=[1□□□],1⋅1+1⋅0=1
Step 3 — A^2 Top-Right entry
Fill top-right entry: 1*1 + 1*1 = 2.
P=[1□2□],1⋅1+1⋅1=2
Step 4 — A^2 Bottom-Left entry
Fill bottom-left entry: 0*1 + 1*0 = 0.
P=[102□],0⋅1+1⋅0=0
Step 5 — A^2 Bottom-Right entry
Fill bottom-right entry: 0*1 + 1*1 = 1.
P=[1021],0⋅1+1⋅1=1
Step 6 — A^3 Top-Left entry
Fill top-left entry: 1*1 + 2*0 = 1.
Q=[1□□□],1⋅1+2⋅0=1
Step 7 — A^3 Top-Right entry
Fill top-right entry: 1*1 + 2*1 = 3.
Q=[1□3□],1⋅1+2⋅1=3
Step 8 — A^3 Bottom-Left entry
Fill bottom-left entry: 0*1 + 1*0 = 0.
Q=[103□],0⋅1+1⋅0=0
Step 9 — A^3 Bottom-Right entry
Fill bottom-right entry: 0*1 + 1*1 = 1.
Q=[1031],0⋅1+1⋅1=1
matrix power
A^n means A multiplied by itself n times. For a square matrix, each step is a standard matrix multiply using the result of the previous step.
repeated multiplication
A³ = (A · A) · A. We compute the intermediate A² first, store it, then multiply A² by A to get A³. The same row·col dot-product procedure applies at each step.