On Sep 8, 3:22 am, Dan Drake <[email protected]> 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() "directly": > > sage: A = exp(I*pi*n) > sage: A.maxima_methods().rectform() > (-1)^n >
I dimly recall this as well. Dan or Andrzej, can you open a ticket adding this example to our documentation somewhere? We may even want to wrap rectform, though probably under a different name... Thanks, - kcrisman -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
