Multiplying matrices



On 07/20/2011 01:11 PM, Daniel Dalton wrote:
> A:matrix([0.8,0.5],[0.2,0.5]);
>                                   [ 0.8  0.5 ]
> (%o1)                            [          ]
>                                   [ 0.2  0.5 ]
> (%i2) B:matrix([1],[0]);
>                                       [ 1 ]
> (%o2)                                [   ]
>                                       [ 0 ]
> (%i3) C:A*B;
>
> fullmap: arguments must have same formal structure.
>   -- an error. To debug this try: debugmode(true);
> (%i4)
Use A.B instead of A*B, A.B is the noncommutative product operator in Maxima.
For your next questions please use display2d : false


display2d : false;
A : matrix([0.8,0.5],[0.2,0.5]);
B : matrix([1],[0]);
C : A.B;

Regards
Andre