MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Correct answer for all n


Hi,

Assuming[Element[n, Integers],
  1/(2 \[Pi]) Integrate[Sin[a]*Exp[-I*n*a], {a, -Pi, Pi}]]

returns 0, where as for n = 1 the answer is not zero. Anyway to have 
Mathematica acknowledge that automatically?

Many thanks in advance,

Sam


  • Prev by Date: Re: Special permutation pattern ascending groups sum of
  • Next by Date: Re: working with lists
  • Previous by thread: Re: Special permutation pattern ascending groups sum of
  • Next by thread: Re: Correct answer for all n