Array Operations – Exponentiation (^)

For Array Exponentiation.

B=A^2
B=A*A
C=A^3
C=A*A*A

For array multiplication, to be valid i.e. A*A the following condition must be met n1=m2. Now for array exponentiation, the two arrays being multiplied are the same thus n1=m1 and n2=m2 and because n1=m2 the only condition which satisfies the rule of matrix multiplication is that of a square matrix i.e. m1=m2.

A=[1,2;3,4]
B=[1,2;3,4]^2
B=[1,2;3,4]*[1,2;3,4]
C=[1,2;3,4]^3
C=[1,2;3,4]*[1,2;3,4]*[1,2;3,4]

Advertisements

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.