Question: Write a procedure MULTIPLYMATRIX

who can help me with following question?

Write a procedure MULTIPLYMATRIX to find the
multiplication product of an h x i matrix and an i x j matrix.

that is what I do. is it right?

mult := proc (A, B, C::evaln) local h, i, j; h := LinearAlgebra[rowdim](A); i := linearalgebra[coldim](A); j := linearalebra[coldim](B); A := array(1 .. h, 1 .. i); B := array(1 .. i, 1 .. j); C[h, j] := `&*`(A[h, i], B[i, j]) end proc

 

Please Wait...