Another rewriting question (with exp(%i*%pi*n))



Hi,

I've been messing around trying to reproduce some results in a paper I
was reading. With pen and paper, I get a subtly different answer to the
authors, but the calculation is unpleasant, so I thought I'd try to use
Maxima to make sure I hadn't messed up the arithmetic.

My problem is that I have expressions with stuff that's maybe of the
form:

 exp(%i*n*T*w + %i*%pi*x)

Maybe I know that T*w = 2*%pi (time and "angular speed"), so I can
transform that to

 exp(%i*n*2*%pi + %i*%pi*x)

I can tell Maxima that n is an integer, but how do can I get Maxima to
figure out that the expression is equal to exp(%i*%pi*x)? The
expressions I actually have to deal with are a bit bigger, but I don't
think it changes the fundamental question. (And they contain terms of
this form, with an integer times 2*%pi*%i plus something else in the
exponent)

Defrule-based incantations don't seem to be working for me. I also found
the %emode flag in the documentation, but it doesn't seem to have any
effect. (Bug?)


Rupert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20130523/a1ee5697/attachment.pgp>;