Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.9K Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Product of 4*4 matrices and taking the inverse of the result?

Posted 9 years ago

Hello! I am new to mathematica and am trying to obtain the product of 44 matrices and also take the inverse of it later. O is a 44 matrix. Dia is a 4*4 matrix.

half= O.Dia.

How to I get the fullform of matrix half than just O.dia(In the file) ? Thank you.

Attachments:
4 Replies
Posted 9 years ago

Hi,

As Gianluca pointed out, MatrixForm is for display only. Multiplication of matrices is done with them in their "raw" form. The result of the multiplication could be displayed by applying MatrixForm to it. Since it looks better than the raw List-of-Lists form. But the MatrixForm version of the product will no be suitable for further computations. Use the raw product if you want to carry on with calculations. Please see the attached.

Attachments:
POSTED BY: Hans Milton

Thank you for the corrected file! I understood it now.

The use of MatrixForm is tricky. You should use it only for display, and not for calculation. One way of doing that is to wrap the assigment in parentheses (), and only thereafter use MatrixForm, i.e.: (a={{1,0},{0,1}})//MatrixForm, instead of a={{1,0},{0,1}})//MatrixForm, or else separate entirely the assignment and the display:

a = {{1, 0}, {0, 1}};
a // MatrixForm

We all hope that Wolfram Research will soon make these obscure tricks obsolete by a revision of MatrixForm.

POSTED BY: Gianluca Gorni

Thank you!

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard