matrix square



"? matrix" is your friend.  It's not clear exactly what you did, but the
documentation there says that A^2 squares the elements of a matrix, but
A^^2 is the matrix product of A and A, which is probably what you
wanted.

Ray

> Thank you. A^^2 is indeed what I wanted.
>
>


That approach seems to work fine, so long as you are interested in 
integer powers of a matrix (which seems to be the case here). The 
approach I posted earlier is more general. Suppose, for example, you 
want the square-root of A? A^^(0.5) doesn't evaluate.