Also:
sage: n=var('n')
sage: assume(n,'integer')
sage: maxima('rectform(exp(%i*n*%pi))').sage().simplify_full()
(-1)^n
Andrzej Chrzeszczyk
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
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:
On Sep 8, 3:22 am, Dan Drake dr...@kaist.edu wrote:
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()
On Thu, 08 Sep 2011 at 06:16AM -0700, kcrisman wrote:
On Sep 8, 3:22 am, Dan Drake dr...@kaist.edu wrote:
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
I dimly recall this as well. Dan or Andrzej,