On Wed, 07 Sep 2011 at 11:41PM -0700, achrzesz wrote:
> Also:
> 
> sage: n=var('n')
> sage: assume(n,'integer')
> sage: maxima('rectform(exp(%i*n*%pi))').sage().simplify_full()
> (-1)^n

That's a nice tip. I found a way to access rectform() "directly":

sage: A = exp(I*pi*n)
sage: A.maxima_methods().rectform()
(-1)^n

That's good enough for what I need. Thanks!

Dan

--
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to