[Q] Factoring arrays
- To: mathgroup at smc.vnet.net
- Subject: [mg14929] [Q] Factoring arrays
- From: "Kevin Jaffe" <kj0 at mailcity.com>
- Date: Fri, 27 Nov 1998 03:49:27 -0500
- Organization: MailCity (http://www.mailcity.lycos.com:80)
- Sender: owner-wri-mathgroup at wolfram.com
I'm dealing with some large arrays of symbolic expressions; it often happens that all the elements of the array have an obvious common factor. These arrays would become much more readable if the common factor were pulled out in front as a prefactor for the array, but I can't figure out how to get Mathematica to do this. As a (tiny) example: {{v[2]^2 v[3], -v[1] v[2] v[3]}, {-v[1] v[2] v[3], v[1]^2 v[3]}} Is there a way to get Mathematica to pull out the common v[3] factor from the array above? Thanks, KJ Get your FREE Email at http://mailcity.lycos.com Get your PERSONALIZED START PAGE at http://personal.lycos.com