Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*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 1996

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

Search the Archive

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] ====


  • Prev by Date: Re: How can this MapAt application be done more efficiently
  • Next by Date: Position[] pattern matching
  • Previous by thread: manipulating expressions
  • Next by thread: help! to input data...