Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: Replace certain variable

  • To: mathgroup at
  • Subject: [mg74835] Re: Replace certain variable
  • From: "januswesenberg at" <januswesenberg at>
  • Date: Sat, 7 Apr 2007 04:04:47 -0400 (EDT)
  • References: <ev51a7$a63$>

On Apr 6, 2:44 am, "KFUPM" <hussain.alqaht... at> wrote:
> Dear Group
> If i have a term like : F[w]*Exp[I*w*t] where F[w] is an arbitrary
> function, and i want to replace w by x+ s*a only in the exponent not
> in F[w], i wonder what is the quickest and easiest way to do it
> provided that i have so many similar terms.
> Your help and prompt reply is highly appreciated.

There are many ways. The simplest is probably a delayed rule:
expr = F[w] Exp[I w t];
expr /. Exp[arg_] :> Exp[arg /. w -> x s + a]

E^(I*t*(a + s*x))*F[w]


  • Prev by Date: numerical inversion of laplace transform
  • Next by Date: Re: Replace certain variable
  • Previous by thread: Re: Replace certain variable
  • Next by thread: Re: Replace certain variable