MathGroup Archive 2008

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

Search the Archive

A Problem with Simplify

  • To: mathgroup at
  • Subject: [mg87419] A Problem with Simplify
  • From: "Kevin J. McCann" <Kevin.McCann at>
  • Date: Thu, 10 Apr 2008 02:12:11 -0400 (EDT)
  • Organization: University System of Maryland

I have the following rather simple integral of two sines, which should 
evaluate to zero if m is not equal to n and to L/2 if they are the same.

The following is just fine

Imn = Simplify[Integrate[
        {x, 0, L}]]

However, if I specify that m and n are integers, I only get the 
"general" solution of zero, i.e. when m and n are not equal.

Imn = Simplify[Integrate[
        {x, 0, L}],
      Element[m, Integers] &&
        Element[n, Integers]]

The workaround is obvious in this case, but shouldn't mma give multiple 
answers? Perhaps something similar to what it already does with Integrate?


Kevin J. McCann
Research Associate Professor
Physics Building
University of Maryland, Baltimore County
1000 Hilltop Circle
Baltimore, MD 21250

  • Prev by Date: Re: Path, Get, etc.
  • Next by Date: Re: What is @@@?
  • Previous by thread: Re: Pattern problem: How to count from a long list of numbers all
  • Next by thread: Re: A Problem with Simplify