Re: Unprotect Plus, no automatic collection
- To: mathgroup at smc.vnet.net
- Subject: [mg39115] Re: Unprotect Plus, no automatic collection
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Thu, 30 Jan 2003 01:05:51 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <b184d4$kqb$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, assign the right pattern ? Something like Unprotect[Plus]; Plus[a_.*w1, a_.*w2] := -a Regards Jens Friedrich Laher wrote: > > when Unprotect[Plus]; Plus[w1,w2] = -1 is commanded > and then the expanding of a product gives a*w1 + a*w2 + ... > that is not collapsed to -a + ... automatically, even > if selecting that a*w1 + a*w1 and > the applying Simplify to it from al palette, does it. What > can be done to automize it?