Re: Extended Expand and ExpandAll.
- To: mathgroup at smc.vnet.net
- Subject: [mg54064] Re: Extended Expand and ExpandAll.
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Wed, 9 Feb 2005 09:27:46 -0500 (EST)
- Organization: Uni Leipzig
- References: <cua4kc$hdh$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, expr = a*F[x + y] + F[q + r]^2 - F[q]^2; Block[{F}, F[a_ + b_] := F[a] + F[b]; expr // ExpandAll ] Regards Jens "Josef Karthauser" <joe at tao.org.uk> schrieb im Newsbeitrag news:cua4kc$hdh$1 at smc.vnet.net... > > ExpandAll is a very useful function. It doesn't however know how to > expand arbitary functions. Imagine that I've got an F[a + b] which I > know is distributive and so, > > F[a_ + b_] -> F[a] + F[b]. > > Is there any way of letting Expand/ExpandAll know that it can also > expand F[] objects? > > Joe > -- > Josef Karthauser (joe at tao.org.uk) http://www.josef-k.net/ > FreeBSD (cvs meister, admin and hacker) http://www.uk.FreeBSD.org/ > Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ > ================ An eclectic mix of fact and theory. ================= > >