Re: manipulating expressions

*To*: mathgroup at smc.vnet.net*Subject*: [mg4213] Re: manipulating expressions*From*: Harald Berndt <haraldb at nature.berkeley.edu>*Date*: Tue, 18 Jun 1996 03:25:27 -0400*Organization*: University of California Forest Products Lab*Sender*: owner-wri-mathgroup at wolfram.com

Xah Lee wrote: > > A programming problem. > > I have an expression, for example > > (16 a^4 - 8 a^2 m^2 + m^4 - 8 a^2 n^2 + 2 m^2 n^2 + n^4 - > 8 a^2 p^2 - 2 m^2 p^2 - 2 n^2 p^2 + p^4 - 8 a^2 q^2 - > 2 m^2 q^2 - 2 n^2 q^2 + 2 p^2 q^2 + q^4 ) > > that I want to write in a concise form, namely, as a sum of a few > products. You might try the package PatternRearrange.m, published on Wolfram's web site (it's from a TMJ article, when TMJ still posted the code from their authors). It's doesn't process expressions automatically, but it is very versatile and allows much clever term collecting. -- _______________________________________________________________ Harald Berndt University of California Research Specialist Forest Products Laboratory Phone: 510-215-4224 FAX:510-215-4299 _______________________________________________________________ ==== [MESSAGE SEPARATOR] ====