Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

MatrixForm

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62567] MatrixForm
  • From: "David Park" <djmp at earthlink.net>
  • Date: Mon, 28 Nov 2005 00:57:59 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Sometimes MatrixForm seems annoying because it is not transparent to other operations as some of the other Forms are. Actually, I think its design is very good because it allows one to write matrix equations with the Dot product in a nice form, and then easily evaluate them.

A = Array[a, {2, 2}];
B = Array[b, {2, 2}];

3 MatrixForm[A].MatrixForm[B]
% /. MatrixForm -> Identity // MatrixForm

The Dot product won't evaluate when the matrices are wrapped in MatrixForm and so we get the regular textbook form of a product. Notice also that the factor 3 was not sucked into the matrices. Using the rule  MatrixForm -> Identity then evaluates the matrix multiplication.

I don't know how many users are aware of this usage. I have just begun to appreciate it and thought I would post a note on it.

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 


  • Follow-Ups:
  • Prev by Date: Filled Plot
  • Next by Date: Get numbers out of PhysicalConstants?
  • Previous by thread: Re: Filled Plot
  • Next by thread: Re: MatrixForm