Mathematica 9 is now available
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

Re: Matrix/Array Simplification

  • To: mathgroup at smc.vnet.net
  • Subject: [mg60125] Re: Matrix/Array Simplification
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Sat, 3 Sep 2005 02:06:19 -0400 (EDT)
  • References: <df941f$61o$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Jon Palmer wrote:
> Mathematica will happilly simplify scalar expressions such as
> 
> Simplify[a*x + a*y] = a*(x+y)
> 
> 
> My question is: Is there a simple way to simplfy matrices in a similar way?
> 
> For example suppose you have the diagonal matrix
> m = {{a x, 0}, {0, a y }}
> 
> can this matrix be simplified to the form
> 
> 
> 
> a * {{ x, 0}, {0,  y }}
> 
> 
> 
> Many thansk
> 
> Jon Palmer
> 
> 
> 
> 
> 
> 
> 
> 
Hello,

One problem with the form you have specified is that it is not stable - 
if you give a scalar/matrix multiplication to Mathematica it will 
multiply it out!

You could however look for a suitable factor thus:

PolynomialGCD[m]

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Timing loop For !!
  • Next by Date: Re: piecewise vs which
  • Previous by thread: Matrix/Array Simplification
  • Next by thread: Re: Matrix/Array Simplification