Question: Covert a 1x1 matrix

Hi

In the programme I am writing, we need to multiply axb with "a" being an integer, but found as a product of 2 matrices, and "b" being a 3x1 matrix. Currently I receive the message "Error, (in rtable/Product) invalid arguements" with the following code, can anyone help?

a[1]:=Multiply(Transpose(g[k]),(d[k]));
a[2]:=Multiply(Transpose(d[k]),Q);
a[3]:=Multiply(a[2],d[0]);

alpha[k] := Multiply((a[1]),MatrixInverse(a[3]));
whattype( alpha[k] );


a1:= [0]
a2:= [3 0 1]
a3:= [3]
alpha0:= [0]
Matrix


h:= alpha[k] * d[k];

Error, (in rtable/Product) invalid arguments

Many Thanks

 

 

Please Wait...