Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Assuming and Integrate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128320] Assuming and Integrate
  • From: hamiltoncycle at gmail.com
  • Date: Sat, 6 Oct 2012 01:53:12 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

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