On Thu, 2011-07-21 at 21:12 +1000, Daniel Dalton wrote:
> On Wed, Jul 20, 2011 at 12:20:21PM +0100, Jaime Villate wrote:
> > you should use a dot, rather than an asterisk:
> > (%i3) C:A.B;
> >
> > when you use *, Maxima tries to multiply each two elements in the same
> > position of the 2 matrices, rather than doing a matrix multiplication.
>
> Perfect! That's exactly what I want, thanks. Are there any other
> operators specific to matrices I should be aware of?
Yes, you should also be aware of A^^2 which means the matrix A times
itself. If you wrote A^2, Maxima would simply square each element in the
matrix. That operator can also be used to obtain the inverse of the
matrix: A^^(-1)
(or if you prefer, use the function invert(A))
Cheers,
Jaime