| Author |
Comment/Response |
Forum Moderator
email me
 |
11/20/12 11:59am
Gentlemen,
Thank you for taking to time to post these reports.
$Assumptions works better when the right side is a list. (There are still strange features of this, so it was good to be reported.)
In[1]:= ser = Normal[Series[Exp[I*n*Sin[t] + k*I*t], {n, 0, 5}]] ;
In[2]:= $Assumptions = Element[k, Integers];
In[3]:= Integrate[ser, {t, 0, 2*Pi}]
Out[3]= 0
In[4]:= $Assumptions = {Element[k, Integers]} ;
In[5]:= Integrate[ser, {t, 0, 2*Pi}] // InputForm
Out[5]//InputForm=
(-I)*(-1 + E^((2*I)*k*Pi))*(-(n/(-1 + k^2)) - n^3/(9 - 10*k^2 + k^4) +
n^4/(64*k - 20*k^3 + k^5) - n^5/(-225 + 259*k^2 - 35*k^4 + k^6) +
(1 + n^2/(-4 + k^2))/k)
In[6]:= $Version
Out[6]= 8.0 for Mac OS X x86 (64-bit) (October 5, 2011)
URL: , |
|