Re: Replace certain variable
- To: mathgroup at smc.vnet.net
- Subject: [mg74838] Re: Replace certain variable
- From: "dimitris" <dimmechan at yahoo.com>
- Date: Sat, 7 Apr 2007 04:06:19 -0400 (EDT)
- References: <ev51a7$a63$1@smc.vnet.net>
In[4]:= Replace[F[w]*Exp[I*w*t], w -> x + s*a, {3}] Out[4]= E^(I*t*(a*s + x))*F[w] In[16]:= E^(I*t*(a*s + x))*F[w] /. E^(h_)[b__, w] -> E^h[b, x + s*a] Out[16]= E^(I*t*(a*s + x))*F[w] =CF/=C7 KFUPM =DD=E3=F1=E1=F8=E5: > 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. > > HMQ