Rank: Administration Groups: Registered, Advanced Member Joined: 23/06/2009(UTC) Posts: 1,740 Was thanked: 318 time(s) in 268 post(s)
|
Hello,
SMath uses column matrix as a vector. Therefore: mat(4,5,6,3,1)^2=77 mat(4,5,6,3,1)*mat(4,5,6,3,1)=77 4*4+5*5+6*6=77 represents scalar products of two vectors, resulting in scalar. However, row matrix can not be used this way mat(4,5,6,1,3)^2=#@# It is regarded as matrix product of two matrices, resulting in matrix. mat(4,5,6,1,3)*mat(4,5,6,1,3)=#@# Of course, it is not possible - wrong numbers of rows/columns. You can do only this: mat(4,5,6,1,3)*mat(4,5,6,3,1)=mat(77,1,1) mat(4,5,6,3,1)*mat(4,5,6,1,3)=mat(16,20,24,20,25,30,24,30,36,3,3)
Regards, Radovan
|
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!" |