Also:
sage: n=var('n')
sage: assume(n,'integer')
sage: maxima('rectform(exp(%i*n*%pi))').sage().simplify_full()
(-1)^nAndrzej Chrzeszczyk -- 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
