MathGroup Archive 2002

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

Search the Archive

Re: common factors in a matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg33561] Re: common factors in a matrix
  • From: "Allan Hayes" <hay at haystack.demon.co.uk>
  • Date: Sun, 31 Mar 2002 04:09:12 -0500 (EST)
  • References: <a81jmn$77i$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Bart,

HoldForm[(a+b)MatrixForm[{{c,d},{0,a-b}}] ]

HoldForm[MatrixForm[{{c,d},{0,a-b}}] (a+b)]

MatrixForm[{{c,d},{0,a-b}}].MatrixForm[{{p},{q}}]

MatrixForm[{{p,q}}].MatrixForm[{{c,d},{0,a-b}}]

You can remove HoldForm and MatrixForm when you need to compute.

--
Allan

---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565


"Bart Vorselaars" <fourteen at stack.nl> wrote in message
news:a81jmn$77i$1 at smc.vnet.net...
> Hello,
>
> When I have a matrix, say
>
> {{(a+b)c,(a+b)d},{0,a^2-b^2}}
>
> I know how to output it as a matrix in mathematica (MatrixForm). But how
> do I display this matrix as a matrix with the common factor in front of
> it, say:
>
> (a+b)[ c  d   ]
>      [ 0  a-b ]
>
>
> Thanks in advance,
> Bart
>
>
>




  • Prev by Date: Re: Problem
  • Next by Date: Re: Particular structure
  • Previous by thread: common factors in a matrix
  • Next by thread: RE: common factors in a matrix