Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 2416 by [email protected]: Exponential function exp(I*k**2*pi) simplifies to -1
http://code.google.com/p/sympy/issues/detail?id=2416 This should not simplify to -1, since it is 1 for even k and -1 for odd k: In [1]: k = Symbol('k', integer=True) In [2]: exp(I*k**2*pi) Out[2]: -1 However, this is correct: In [10]: k = Symbol('k', integer=True, odd=True) In [11]: exp(I*k**2*pi) Out[11]: -1 In [12]: k = Symbol('k', integer=True, even=True) In [13]: exp(I*k**2*pi) Out[13]: 1 -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. 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/sympy-issues?hl=en.
