Author 
Comment/Response 
Paul Dragulin

11/29/09 11:13am
Hi,
I can't get the assumption specifying a given constant to be an integer to work in an integral. For example, Integrate[Sin[k*x],{x,0,2Pi},Assumptions>Element[k,Integers]] yields (2*Sin[k*Pi]^2)/k instead of zero. If I nest the above output expression in Refine[expression,Assumptions>Element[k,Integers]] then it yields zero (which is wrong also since the case when k=0 in that expression is undefined). I would prefer not do it using Refine[] because sometimes the desired Integral doesn't work out to begin with when it should have had it understood that certain parameters were integers. Thanks!
URL: , 
