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

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

Search the Archive

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



  • Prev by Date: Re: Fourier function...having problems reproducing answers in a paper
  • Next by Date: Re: Fourier function...having problems reproducing answers in a paper
  • Previous by thread: Extended Expand and ExpandAll.
  • Next by thread: Re: Extended Expand and ExpandAll.