Mathematica 9 is now available
Student Support Forum
Student Support Forum: 'Pattern Matching for Exponentials' topicStudent Support Forum > General > Archives > "Pattern Matching for Exponentials"

Next Comment >Help | Reply To Topic
Author Comment/Response
Rick Eller
06/27/06 6:36pm

I am looking for a pattern-matching replacement rule which will transform exponential functions of the form exp(nit) into (1/(n^2-1))exp(nit) where i=sqrt[-1]. For example, exp(2it) should convert to (1/3)exp(2it). I've tried the following code without success :

In: Exp[2it] /. Exp[n_it] -> Exp[nit]/(n^2-1)

Out: e^2it

I would appreciate any suggestions as to how this code should be modified

URL: ,

Subject (listing for 'Pattern Matching for Exponentials')
Author Date Posted
Pattern Matching for Exponentials Rick Eller 06/27/06 6:36pm
Re: Pattern Matching for Exponentials VL 06/30/06 8:56pm
Re: Pattern Matching for Exponentials Henry Lamb 06/30/06 9:10pm
Next Comment >Help | Reply To Topic