[sage-support] Re: exp(I*pi*n).simplify_exp() doesn't work well

2011-09-08 Thread achrzesz
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

Re: [sage-support] Re: exp(I*pi*n).simplify_exp() doesn't work well

2011-09-08 Thread Dan Drake
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:

[sage-support] Re: exp(I*pi*n).simplify_exp() doesn't work well

2011-09-08 Thread kcrisman
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()

Re: [sage-support] Re: exp(I*pi*n).simplify_exp() doesn't work well

2011-09-08 Thread Dan Drake
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,