Xah Lee wrote: > 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. There are many possibilities and it's tedious to form each. > How would you write a Mathematica program that would take such an > expression and spits out a few choicy forms for the user?
I posted the above problem and only one person replied with a code. Here's email@example.com (Lee D. Killough)'s solution: