MathGroup Archive 2005

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

Search the Archive

Re: Matrix/Array Simplification


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