23 May 2013 13:31
Another rewriting question (with exp(%i*%pi*n))
Rupert Swarbrick <rswarbrick <at> gmail.com>
2013-05-23 11:31:48 GMT
2013-05-23 11:31:48 GMT
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(Continue reading)
RSS Feed