MathGroup Archive 2012

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

Search the Archive

Assuming and Integrate

  • To: mathgroup at
  • Subject: [mg128320] Assuming and Integrate
  • From: hamiltoncycle at
  • Date: Sat, 6 Oct 2012 01:53:12 -0400 (EDT)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

When I try the line below in Mathematica 8 I get the answer 0 which is what I expect when m and n are different but not when m=n. Can anyone explain how to do this correctly?

Assuming[Element[{n, m}, Integers], Integrate[Sin[n*x]*Sin[m*x], {x, 0, Pi}]]

When m=n we should get Pi/2, as in this case:

Assuming[Element[n, Integers], Integrate[Sin[n*x]*Sin[n*x], {x, 0, Pi}]] 

cheers, Robert

  • Prev by Date: Re: List manipulation?
  • Next by Date: Re: pattern matching
  • Previous by thread: Re: List manipulation?
  • Next by thread: Re: Assuming and Integrate