MathGroup Archive 2006

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

Search the Archive

Re: Pattern Matching for Exponentials

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67512] Re: Pattern Matching for Exponentials
  • From: "James Gilmore" <james.gilmore at yale.edu>
  • Date: Thu, 29 Jun 2006 00:09:25 -0400 (EDT)
  • Organization: Yale University
  • References: <e7tejf$444$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

What  version are you using. It works on 5.2

In[11]:=
Exp[2 i t] /. Exp[n_ i t] -> Exp[n i t]/(n^2 - 1)
Out[11]=
\!\(1\/3\ \[ExponentialE]\^\(2\ i\ t\)\)
In[12]:=
$Version
Out[12]=
5.2 for Microsoft Windows (June 20, 2005)


Cheers
James


"Rick Eller" <reller at bigpond.com> wrote in message 
news:e7tejf$444$1 at smc.vnet.net...
>
> I am looking for a pattern-matching replacement rule which will
> transform exponential functions of the form exp(n i t) into
> (1/(n^2-1))exp(n i t) where i = sqrt[-1]. For example, exp(2 i t)
> should convert to (1/3)exp(2 i t). I've tried the following code without
> success :
>
> In:     Exp[2 i t]   /.  Exp[n_ i t] -> Exp[n i t]/(n^2-1)
>
> Out:  e^2 i t
>
> I would appreciate any suggestions as to how this code should be
> modified.
>
> Thanks,
>
> Rick Eller
> 



  • Prev by Date: Re: Limit of an expression?
  • Next by Date: Re: Pattern Matching for Exponentials
  • Previous by thread: Re: Pattern Matching for Exponentials
  • Next by thread: Re: Pattern Matching for Exponentials